Commit 622ccfa2 622ccfa2e9a3d07b396aa25d08351147caba43ae by Sergey Poznyakoff

Minor fix.

* mailbox/rfc2047.c (getword): Initialize *pret to NULL after freeing
it.
1 parent d31b2f98
...@@ -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;
......