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
/
xregex.c
diff --git
a/libopkg/xregex.c
b/libopkg/xregex.c
index 0ae54e73ae6fd2434f7449499f0f89a0d93e144a..b0cd8b9cd9e8bcfef2072de0e01573e529c0db0c 100644
(file)
--- a/
libopkg/xregex.c
+++ b/
libopkg/xregex.c
@@
-39,7
+39,7
@@
static void print_regcomp_err(const regex_t *preg, int err)
fprintf(stderr, "%s: Error compiling regex:", __FUNCTION__);
size = regerror(err, preg, 0, 0);
- error =
malloc(
size);
+ error =
calloc(1,
size);
if (error) {
regerror(err, preg, error, size);
fprintf(stderr, "%s\n", error);