nmh-commits
[Top][All Lists]
Advanced

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

[Nmh-commits] [SCM] The nmh Mail Handling System branch, master, updated


From: Ken Hornstein
Subject: [Nmh-commits] [SCM] The nmh Mail Handling System branch, master, updated. 78b9c394d4df10be72515b4b58204e43adc1026a
Date: Sun, 12 Feb 2012 04:29:46 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The nmh Mail Handling System".

The branch, master has been updated
       via  78b9c394d4df10be72515b4b58204e43adc1026a (commit)
      from  93d0dbc35865a7118d1dec28e19fda4bb31ba691 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/nmh.git/commit/?id=78b9c394d4df10be72515b4b58204e43adc1026a


commit 78b9c394d4df10be72515b4b58204e43adc1026a
Author: Ken Hornstein <address@hidden>
Date:   Sat Feb 11 23:28:10 2012 -0500

    Another problem discovered by the test suite.
    
    With multiple sequence arguments on the command line you might end
    up with garbage in the sequence[] array (it needs the last argument
    to be a NULL.  So do two things: make the first two arguments NULL, and
    as we add arguments to sequence[] make sure the list has a NULL on the
    end.

diff --git a/uip/new.c b/uip/new.c
index 752f028..38c8f0b 100644
--- a/uip/new.c
+++ b/uip/new.c
@@ -409,6 +409,7 @@ main(int argc, char **argv)
     struct node *folder;
 
     sequences[0] = NULL;
+    sequences[1] = NULL;
 
 #ifdef LOCALE
     setlocale(LC_ALL, "");
@@ -456,6 +457,7 @@ main(int argc, char **argv)
        /* have a sequence argument */
        if (!seq_in_list(cp, sequences)) {
            sequences[i++] = cp;
+           sequences[i] = NULL;
        }
     }
 

-----------------------------------------------------------------------

Summary of changes:
 uip/new.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
The nmh Mail Handling System



reply via email to

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