nmh-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nmh-commits] nmh ChangeLog uip/inc.c


From: David Levine
Subject: [Nmh-commits] nmh ChangeLog uip/inc.c
Date: Fri, 25 Dec 2009 14:47:40 +0000

CVSROOT:        /sources/nmh
Module name:    nmh
Changes by:     David Levine <levine>   09/12/25 14:47:40

Modified files:
        .              : ChangeLog 
        uip            : inc.c 

Log message:
                * 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.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/nmh/ChangeLog?cvsroot=nmh&r1=1.305&r2=1.306
http://cvs.savannah.gnu.org/viewcvs/nmh/uip/inc.c?cvsroot=nmh&r1=1.27&r2=1.28

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/nmh/nmh/ChangeLog,v
retrieving revision 1.305
retrieving revision 1.306
diff -u -b -r1.305 -r1.306
--- ChangeLog   21 Dec 2009 17:18:04 -0000      1.305
+++ ChangeLog   25 Dec 2009 14:47:39 -0000      1.306
@@ -1,3 +1,10 @@
+2009-12-25  David Levine <address@hidden>
+
+       * 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 <address@hidden>
 
        * mts/smtp/smtp.c: In sm_auth_sasl (), removed zeroing of

Index: uip/inc.c
===================================================================
RCS file: /sources/nmh/nmh/uip/inc.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -b -r1.27 -r1.28
--- uip/inc.c   2 Jun 2008 22:37:01 -0000       1.27
+++ uip/inc.c   25 Dec 2009 14:47:39 -0000      1.28
@@ -2,7 +2,7 @@
 /*
  * inc.c -- incorporate messages from a maildrop into a folder
  *
- * $Id: inc.c,v 1.27 2008/06/02 22:37:01 pm215 Exp $
+ * $Id: inc.c,v 1.28 2009/12/25 14:47:39 levine Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -545,7 +545,7 @@
            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;
     }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]