X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fnew.c;h=10854dc98ea5a4ec800248152cd41d6163520479;hb=a8a488a128a8124503d01da632c7290f6abc0752;hp=99d8528b31519052d880f10b5a44c59085828c78;hpb=93f22073ff22b277206b0481c1f8f076aee1656d;p=mmh diff --git a/uip/new.c b/uip/new.c index 99d8528..10854dc 100644 --- a/uip/new.c +++ b/uip/new.c @@ -408,6 +408,9 @@ main(int argc, char **argv) char *unseen; struct node *folder; + sequences[0] = NULL; + sequences[1] = NULL; + #ifdef LOCALE setlocale(LC_ALL, ""); #endif @@ -435,10 +438,10 @@ main(int argc, char **argv) snprintf (help, sizeof(help), "%s [switches] [sequences]", invo_name); print_help (help, switches, 1); - done (1); + done (0); case VERSIONSW: print_version(invo_name); - done (1); + done (0); case FOLDERSSW: if (!(folders = *argp++) || *folders == '-') @@ -454,6 +457,7 @@ main(int argc, char **argv) /* have a sequence argument */ if (!seq_in_list(cp, sequences)) { sequences[i++] = cp; + sequences[i] = NULL; } }