From 0f89f6cb9039315c06af880f4983341edd2a2421 Mon Sep 17 00:00:00 2001 From: epg <> Date: Fri, 24 Jan 2003 03:31:35 +0000 Subject: [PATCH] (scan_message): Initialize the first character of fromheader and subjheader to '\0' so that they will appear as empty strings when that header is missing from the message. Previously, the previous's message's contents for that header was printed instead of nothing. --- mdfrm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mdfrm.c b/mdfrm.c index 2f48ee5..4eadeb4 100644 --- a/mdfrm.c +++ b/mdfrm.c @@ -50,6 +50,7 @@ scan_message(char *filename, char *fromheader, char *subjheader) } fromcount = subjcount = 0; + fromheader[0] = subjheader[0] = '\0'; while ((line = fgetln(file, &len))) { if (len <= 1) { break; -- 2.56.0