mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[common] fix stringlist const free bug
This commit is contained in:
parent
cc6dd58778
commit
d9b6d115d1
@ -33,9 +33,10 @@ StringList stringlist_new(bool owns_strings)
|
||||
{
|
||||
StringList sl = malloc(sizeof(struct StringList));
|
||||
|
||||
sl->size = 32;
|
||||
sl->count = 0;
|
||||
sl->list = malloc(sizeof(char *) * sl->size);
|
||||
sl->owns_strings = owns_strings;
|
||||
sl->size = 32;
|
||||
sl->count = 0;
|
||||
sl->list = malloc(sizeof(char *) * sl->size);
|
||||
|
||||
return sl;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user