diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-08-22 14:46:08 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2016-08-25 22:29:47 +0300 |
commit | 55f74d88c076061d03391689269641d141393187 (patch) | |
tree | 2b4a6208772351e619fbe226f15ee0fc48503c32 | |
parent | 46ae038f21a0bb8b8cfe5361df6439cf572ad2cc (diff) | |
download | direvent-55f74d88c076061d03391689269641d141393187.tar.gz direvent-55f74d88c076061d03391689269641d141393187.tar.bz2 |
Bugfix
* src/hashtab.c (hashent_list_append): Fix allocated memory size.
-rw-r--r-- | src/hashtab.c | 2 |
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; |