projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed debugging statement and added comments to the duplicate check
[mmh]
/
uip
/
new.c
diff --git
a/uip/new.c
b/uip/new.c
index
752f028
..
10854dc
100644
(file)
--- a/
uip/new.c
+++ b/
uip/new.c
@@
-409,6
+409,7
@@
main(int argc, char **argv)
struct node *folder;
sequences[0] = NULL;
struct node *folder;
sequences[0] = NULL;
+ sequences[1] = NULL;
#ifdef LOCALE
setlocale(LC_ALL, "");
#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);
snprintf (help, sizeof(help), "%s [switches] [sequences]",
invo_name);
print_help (help, switches, 1);
- done (1);
+ done (0);
case VERSIONSW:
print_version(invo_name);
case VERSIONSW:
print_version(invo_name);
- done (1);
+ done (0);
case FOLDERSSW:
if (!(folders = *argp++) || *folders == '-')
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;
/* have a sequence argument */
if (!seq_in_list(cp, sequences)) {
sequences[i++] = cp;
+ sequences[i] = NULL;
}
}
}
}