projects
/
oweals
/
opkg-lede.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
opkg: adding the hash_table_remove API, not using yet.
[oweals/opkg-lede.git]
/
libopkg
/
str_list.c
diff --git
a/libopkg/str_list.c
b/libopkg/str_list.c
index d6f9209e02171eaebc848bd31c5f347e5e371292..1d217469ca6218607f448cb321b4869857aa5aa2 100644
(file)
--- a/
libopkg/str_list.c
+++ b/
libopkg/str_list.c
@@
-31,7
+31,7
@@
void str_list_elt_deinit(str_list_elt_t *elt)
str_list_t *str_list_alloc()
{
- str_list_t *list = (str_list_t *)
malloc(
sizeof(str_list_t));
+ str_list_t *list = (str_list_t *)
calloc(1,
sizeof(str_list_t));
if (list)
str_list_init(list);
return list;