From cd665517f488ca62e71b7fd1db6df0813dee052a Mon Sep 17 00:00:00 2001 From: David Levine Date: Fri, 25 Dec 2009 14:47:39 +0000 Subject: [PATCH] * 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. --- ChangeLog | 7 +++++++ uip/inc.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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; } -- 1.7.10.4