projects
/
project
/
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.
[project/opkg-lede.git]
/
libopkg
/
pkg_dest_list.c
diff --git
a/libopkg/pkg_dest_list.c
b/libopkg/pkg_dest_list.c
index ac693120f858d57fab60be49c4c1dcddfc4af280..48ca07fa771f3dd64cb9877522e06de3a149b0cd 100644
(file)
--- a/
libopkg/pkg_dest_list.c
+++ b/
libopkg/pkg_dest_list.c
@@
-59,7
+59,7
@@
pkg_dest_t *pkg_dest_list_append(pkg_dest_list_t *list, const char *name,
pkg_dest_t *pkg_dest;
/* freed in plg_dest_list_deinit */
- pkg_dest =
malloc(
sizeof(pkg_dest_t));
+ pkg_dest =
calloc(1,
sizeof(pkg_dest_t));
if (pkg_dest == NULL) {
fprintf(stderr, "%s: out of memory\n", __FUNCTION__);
return NULL;