X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fnew.c;h=99d8528b31519052d880f10b5a44c59085828c78;hb=ecc90fb56b43863f4c33ed62da4abe898b17d7fb;hp=254950b258da90405dad5a85a04d2f23589952b0;hpb=9530ace10a49d62c80c95914601fa9246099501b;p=mmh diff --git a/uip/new.c b/uip/new.c index 254950b..99d8528 100644 --- a/uip/new.c +++ b/uip/new.c @@ -218,6 +218,8 @@ crawl_callback(char *folder, void *baton) * `cur' points to the name of the current folder, `folders' points to the * name of a .folder (if NULL, crawl all folders), and `sequences' points to * the array of sequences for which to look. + * + * An empty list is returned as first=last=NULL. */ static void check_folders(struct node **first, struct node **last, @@ -229,7 +231,7 @@ check_folders(struct node **first, struct node **last, char *line; size_t len; - *first = *cur_node = NULL; + *first = *last = *cur_node = NULL; *maxlen = 0; b.first = first;