Commit 3e239111 3e239111af0d118f5acd4477a069599135e090f3 by Sergey Poznyakoff

(mu_rfc2047_encode): Return EINVAL if any of

the arguments is NULL.
1 parent 4a1df226
...@@ -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";
......