Minor fix.
* mailbox/rfc2047.c (getword): Initialize *pret to NULL after freeing it.
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -51,6 +51,7 @@ getword (char **pret, const char **pstr, int delim) | ... | @@ -51,6 +51,7 @@ getword (char **pret, const char **pstr, int delim) |
51 | const char *end = strchr (start, delim); | 51 | const char *end = strchr (start, delim); |
52 | 52 | ||
53 | free (*pret); | 53 | free (*pret); |
54 | *pret = NULL; | ||
54 | if (!end) | 55 | if (!end) |
55 | return MU_ERR_BAD_2047_INPUT; | 56 | return MU_ERR_BAD_2047_INPUT; |
56 | len = end - start; | 57 | len = end - start; | ... | ... |
-
Please register or sign in to post a comment