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
/
nv_pair_list.c
diff --git
a/libopkg/nv_pair_list.c
b/libopkg/nv_pair_list.c
index a3010e2b3b28b6eaff5a72582d5cfc92ed4e02f7..544d1e0ecd9048261f98a966ae426a54f9d33f0a 100644
(file)
--- a/
libopkg/nv_pair_list.c
+++ b/
libopkg/nv_pair_list.c
@@
-57,7
+57,7
@@
nv_pair_t *nv_pair_list_append(nv_pair_list_t *list, const char *name, const cha
int err;
/* freed in nv_pair_list_deinit */
- nv_pair_t *nv_pair =
malloc(
sizeof(nv_pair_t));
+ nv_pair_t *nv_pair =
calloc(1,
sizeof(nv_pair_t));
if (nv_pair == NULL) {
fprintf(stderr, "%s: out of memory\n", __FUNCTION__);