string_list_new_special - Set len to 0 upon failure

This commit is contained in:
twinaphex 2015-10-26 19:42:52 +01:00
parent 91523a21c5
commit a0531cd7cf

View File

@ -235,7 +235,8 @@ struct string_list *string_list_new_special(enum string_list_type type,
error:
string_list_free(s);
s = NULL;
s = NULL;
*len = 0;
return NULL;
}