summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2016-08-22 11:46:08 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2016-08-25 19:29:47 (GMT)
commit55f74d88c076061d03391689269641d141393187 (patch) (side-by-side diff)
tree2b4a6208772351e619fbe226f15ee0fc48503c32
parent46ae038f21a0bb8b8cfe5361df6439cf572ad2cc (diff)
downloaddirevent-55f74d88c076061d03391689269641d141393187.tar.gz
direvent-55f74d88c076061d03391689269641d141393187.tar.bz2
Bugfix
* src/hashtab.c (hashent_list_append): Fix allocated memory size.
Diffstat (more/less context) (ignore whitespace changes)
-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.