summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
93d0dbc)
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.
struct node *folder;
sequences[0] = NULL;
struct node *folder;
sequences[0] = NULL;
#ifdef LOCALE
setlocale(LC_ALL, "");
#ifdef LOCALE
setlocale(LC_ALL, "");
/* 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;