aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2016-08-22 14:46:08 +0300
committerSergey Poznyakoff <gray@gnu.org>2016-08-25 22:29:47 +0300
commit55f74d88c076061d03391689269641d141393187 (patch)
tree2b4a6208772351e619fbe226f15ee0fc48503c32
parent46ae038f21a0bb8b8cfe5361df6439cf572ad2cc (diff)
downloaddirevent-55f74d88c076061d03391689269641d141393187.tar.gz
direvent-55f74d88c076061d03391689269641d141393187.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)
61static int 61static int
62hashent_list_append(struct hashent_list *list, struct hashent *ent) 62hashent_list_append(struct hashent_list *list, struct hashent *ent)
63{ 63{
64 struct hashent_list_entry *hent = malloc(sizeof(*ent)); 64 struct hashent_list_entry *hent = malloc(sizeof(*hent));
65 if (!hent) 65 if (!hent)
66 return -1; 66 return -1;
67 hent->ent = ent; 67 hent->ent = ent;

Return to:

Send suggestions and report system problems to the System administrator.