From a0531cd7cf6acf4355063f23d7c4b34e376b193b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 26 Oct 2015 19:42:52 +0100 Subject: [PATCH] string_list_new_special - Set len to 0 upon failure --- string_list_special.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/string_list_special.c b/string_list_special.c index 15ca065a28..6d89e24930 100644 --- a/string_list_special.c +++ b/string_list_special.c @@ -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; }