X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/abde85b440e74e4852e96a23fd5f02d2f3bdd370..95e9c4e6befb17ca3e691c26f024fb55eeae5e31:/uip/new.c diff --git a/uip/new.c b/uip/new.c index 752f0283..10854dc9 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, ""); @@ -437,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 == '-') @@ -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; } }