Fixed parsing bug.

This commit is contained in:
Peter Simons 2000-12-16 13:27:12 +00:00
parent 55f89a924d
commit 08f3fb4045

View File

@ -140,7 +140,7 @@ rfc822_decomment(const char * source /* String containing a formatted rfc822 ad
assert(source != NULL);
if (!source || *source == '\0') {
errno = EINVAL;
return NULL;
return 0;
}
/* Allocate buffer. */
@ -197,7 +197,7 @@ rfc822_decomment(const char * source /* String containing a formatted rfc822 ad
angel_bracket_count--;
break;
}
else if (!in_quote && *s == '\\') {
else if (*s == '\\') {
if (s[1] != '\0') {
*p++ = *s++;
}