X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Finc.c;h=f23a565f7ea7d3c919fced36a68f601d48533820;hp=ef1b08febc408334e5467ca4db48f436b25be541;hb=5dd6771b28c257af405d7248639ed0e3bcdce38b;hpb=38615191e71744b066425e0c44412b62dbe49cc2 diff --git a/uip/inc.c b/uip/inc.c index ef1b08f..f23a565 100644 --- a/uip/inc.c +++ b/uip/inc.c @@ -2,8 +2,6 @@ /* * inc.c -- incorporate messages from a maildrop into a folder * - * $Id$ - * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. @@ -223,7 +221,7 @@ static FILE *in; */ char *map_name(char *); -static void inc_done(int); +static void inc_done(int) NORETURN; #ifdef POP static int pop_action(char *); static int pop_pack(char *); @@ -236,18 +234,18 @@ main (int argc, char **argv) { int chgflag = 1, trnflag = 1; int noisy = 1, width = 0; - int rpop, i, hghnum, msgnum; + int rpop, i, hghnum = 0, msgnum = 0; int kpop = 0, sasl = 0; - char *cp, *maildir, *folder = NULL; + char *cp, *maildir = NULL, *folder = NULL; char *format = NULL, *form = NULL; char *host = NULL, *user = NULL, *proxy = NULL; char *audfile = NULL, *from = NULL, *saslmech = NULL; char buf[BUFSIZ], **argp, *nfs, **arguments; - struct msgs *mp; + struct msgs *mp = NULL; struct stat st, s1; FILE *aud = NULL; - char b[MAXPATHLEN + 1]; - char *maildir_copy; /* copy of mail directory because the static gets overwritten */ + char b[MAXPATHLEN + 1]; + char *maildir_copy = NULL; /* copy of mail directory because the static gets overwritten */ #ifdef POP int nmsgs, nbytes, p = 0; @@ -545,7 +543,7 @@ main (int argc, char **argv) adios (NULL, "no mail to incorporate"); if ((cp = strdup(newmail)) == (char *)0) - adios (maildir, "error allocating memory to copy newmail"); + adios (NULL, "error allocating memory to copy newmail"); newmail = cp; }