aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2016-08-22 14:46:08 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2016-08-22 14:46:08 +0300
commit7a3bef0cc0e4a95da10ac12a714190b4bcdf61ec (patch)
treeeb57695a7e22f082a68e5f944f525dc033bc1b9b
parent7f227bbd73dfed4f1cf01800da98b073fc45c532 (diff)
downloaddirevent-7a3bef0cc0e4a95da10ac12a714190b4bcdf61ec.tar.gz
direvent-7a3bef0cc0e4a95da10ac12a714190b4bcdf61ec.tar.bz2
Bugfix
* src/hashtab.c (hashent_list_append): Fix allocated memory size.
-rw-r--r--src/hashtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hashtab.c b/src/hashtab.c
index 600b345..f7cb0aa 100644
--- a/src/hashtab.c
+++ b/src/hashtab.c
@@ -61,7 +61,7 @@ hashent_list_init(struct hashent_list *list)
static int
hashent_list_append(struct hashent_list *list, struct hashent *ent)
{
- struct hashent_list_entry *hent = malloc(sizeof(*ent));
+ struct hashent_list_entry *hent = malloc(sizeof(*hent));
if (!hent)
return -1;
hent->ent = ent;

Return to:

Send suggestions and report system problems to the System administrator.