string_list - get rid of memset

This commit is contained in:
twinaphex 2017-02-20 01:50:35 +01:00
parent b59e015b8b
commit b15698e6d2

View File

@ -232,7 +232,8 @@ struct string_list *string_split(const char *str, const char *delim)
while (tmp)
{
union string_list_elem_attr attr;
memset(&attr, 0, sizeof(attr));
attr.i = 0;
if (!string_list_append(list, tmp, attr))
goto error;