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
/
file_util.c
diff --git
a/libopkg/file_util.c
b/libopkg/file_util.c
index 6f249a2bc656a87654502f88def8116c9f6fe87b..fad4178901f8f9aa47961d2131acfeaa27501830 100644
(file)
--- a/
libopkg/file_util.c
+++ b/
libopkg/file_util.c
@@
-143,7
+143,7
@@
char *file_md5sum_alloc(const char *file_name)
char *md5sum_hex;
unsigned char md5sum_bin[md5sum_bin_len];
- md5sum_hex =
malloc(
md5sum_hex_len + 1);
+ md5sum_hex =
calloc(1,
md5sum_hex_len + 1);
if (md5sum_hex == NULL) {
fprintf(stderr, "%s: out of memory\n", __FUNCTION__);
return strdup("");