We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e28f36 commit b91c0d6Copy full SHA for b91c0d6
1 file changed
lists/string_list.c
@@ -109,7 +109,12 @@ bool string_list_deinitialize(struct string_list *list)
109
{
110
if (!list)
111
return false;
112
- return string_list_deinitialize_internal(list);
+ if (!string_list_deinitialize_internal(list))
113
+ return false;
114
+ list->elems = NULL;
115
+ list->size = 0;
116
+ list->cap = 0;
117
+ return true;
118
}
119
120
/**
0 commit comments