(mu_rfc2047_encode): Return EINVAL if any of
the arguments is NULL.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -231,7 +231,7 @@ mu_rfc2047_encode (const char *charset, const char *encoding, | ... | @@ -231,7 +231,7 @@ mu_rfc2047_encode (const char *charset, const char *encoding, |
231 | int rc; | 231 | int rc; |
232 | 232 | ||
233 | if (charset == NULL || encoding == NULL || text == NULL) | 233 | if (charset == NULL || encoding == NULL || text == NULL) |
234 | return MU_ERR_BAD_2047_INPUT; | 234 | return EINVAL; |
235 | 235 | ||
236 | if (strcmp (encoding, "base64") == 0) | 236 | if (strcmp (encoding, "base64") == 0) |
237 | encoding = "B"; | 237 | encoding = "B"; | ... | ... |
-
Please register or sign in to post a comment