fixreplyheader bug fix

---------

From: Peter C. McCluskey (pcm@rahul.net)
Date: Fri Sep 17 1999 - 12:57:52 CDT


fixreplyheader depends on a variable replynum which is never initialized
in recent versions. Here's a patch which I think makes it work as intended:

--- parse.c.bak Thu Sep 9 06:53:24 1999
+++ parse.c Fri Sep 17 10:33:44 1999
@@ -2488,7 +2488,7 @@
 
 void fixreplyheader(char *dir, int num)
 {
- int replynum, subjmatch;
+ int replynum = -1, subjmatch;
     char filename[256];
     char line[MAXLINE];
 
@@ -2509,6 +2509,7 @@
       email2 = hashreplylookup(email->msgnum, email->inreplyto, &subjmatch);
       if (!email2)
         return;
+ replynum = email2->msgnum;
     }
 
     msnprintf(filename, sizeof(filename), "%s%s%.4d.%s", dir,

-- 
------------------------------------------------------------------------
Peter McCluskey          | Critmail (http://crit.org/critmail.html):
http://www.rahul.net/pcm | Accept nothing less to archive your mailing list

---------

This archive was generated by hypermail 2.1.5.