string_list_new_special - Set len to 0 upon failure
This commit is contained in:
parent
91523a21c5
commit
a0531cd7cf
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue