diff options
Diffstat (limited to 'rfc2045.c')
-rw-r--r-- | rfc2045.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rfc2045.c b/rfc2045.c index 2e29175..f86d5e2 100644 --- a/rfc2045.c +++ b/rfc2045.c @@ -86,6 +86,8 @@ blaze822_mime_parameter(char *s, char *name, char **starto, char **stopo) while (*s) { while (iswsp(*s)) s++; + if (!*s) + return 0; if (strncasecmp(s, name, namelen) == 0 && s[namelen] == '=') { s += namelen + 1; break; |