aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rfc822.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/rfc822.c b/rfc822.c
index f7a74212..65337ce7 100644
--- a/rfc822.c
+++ b/rfc822.c
@@ -138,6 +138,7 @@ const char *hdr; /* header to be parsed, NUL to continue previous hdr */
#ifdef TESTMAIN
orighdr = hdr;
#endif /* TESTMAIN */
+ tp = address;
}
for (; *hp; hp++)
@@ -172,10 +173,7 @@ const char *hdr; /* header to be parsed, NUL to continue previous hdr */
{
case START_HDR: /* before header colon */
if (*hp == ':')
- {
state = SKIP_JUNK;
- tp = address;
- }
break;
case SKIP_JUNK: /* looking for address start */