Renamed -version switch to -Version to remove the conflict with -verbose.
[mmh] / uip / new.c
index a4da635..de3c0be 100644 (file)
--- a/uip/new.c
+++ b/uip/new.c
@@ -26,7 +26,7 @@ static struct swit switches[] = {
 #define FOLDERSSW 1
        { "folders", 1 },
 #define VERSIONSW 2
-       { "version", 1 },
+       { "Version", 1 },
 #define HELPSW 3
        { "help", 1 },
        { NULL, 0 }
@@ -432,6 +432,9 @@ main(int argc, char **argv)
        char *unseen;
        struct node *folder;
 
+       sequences[0] = NULL;
+       sequences[1] = NULL;
+
 #ifdef LOCALE
        setlocale(LC_ALL, "");
 #endif
@@ -481,6 +484,7 @@ main(int argc, char **argv)
                /* have a sequence argument */
                if (!seq_in_list(cp, sequences)) {
                        sequences[i++] = cp;
+                       sequences[i] = NULL;
                }
        }