From 08f3fb404593a2aaf602fdb07115133ac4688a64 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 16 Dec 2000 13:27:12 +0000 Subject: [PATCH] Fixed parsing bug. --- librfc822/decomment.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/librfc822/decomment.c b/librfc822/decomment.c index 549334c..68f096d 100644 --- a/librfc822/decomment.c +++ b/librfc822/decomment.c @@ -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++; }