X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fnew.c;h=21435b344928d3acdbbeb65f482e0aa197e500c1;hp=976337664d2909e3de4a9209130924f35a843cde;hb=431604647f89d5aac7b199a7883e98e56e4ccf9e;hpb=6e4f8128fe078a3e54f5c92d27c31acc7b8f9fd8 diff --git a/uip/new.c b/uip/new.c index 9763376..21435b3 100644 --- a/uip/new.c +++ b/uip/new.c @@ -121,7 +121,10 @@ get_msgnums(char *folder, char *sequences[]) */ if (seq_in_list(f.name, sequences)) { this_msgnums = trimcpy(f.value); - if (msgnums == NULL) { + if (strlen(this_msgnums) == 0) { + free(this_msgnums); + continue; + } else if (msgnums == NULL) { msgnums = this_msgnums; } else { old_msgnums = msgnums;