From: David Levine Date: Fri, 25 Dec 2009 14:47:39 +0000 (+0000) Subject: * uip/inc.c: gcc 4.4.1 noticed that maildir could have been X-Git-Tag: PRE_POSIX_CONVERSION~7 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=cd665517f488ca62e71b7fd1db6df0813dee052a;p=mmh * uip/inc.c: gcc 4.4.1 noticed that maildir could have been used before initialization. In fact, if that code was ever reached, maildir would never have been initialized. It's in an adios call, so replaced with NULL. --- diff --git a/ChangeLog b/ChangeLog index f72df8e..f5c605c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-12-25 David Levine + + * uip/inc.c: gcc 4.4.1 noticed that maildir could have been + used before initialization. In fact, if that code was ever + reached, maildir would never have been initialized. It's in + an adios call, so replaced with NULL. + 2009-12-21 David Levine * mts/smtp/smtp.c: In sm_auth_sasl (), removed zeroing of diff --git a/uip/inc.c b/uip/inc.c index 0fcff84..fce9cec 100644 --- a/uip/inc.c +++ b/uip/inc.c @@ -545,7 +545,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; }