diff options
Diffstat (limited to 'lib/bidimap.c')
-rw-r--r-- | lib/bidimap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bidimap.c b/lib/bidimap.c index fc601c8..aafc736 100644 --- a/lib/bidimap.c +++ b/lib/bidimap.c @@ -1,5 +1,5 @@ /* This file is part of Eclat. - Copyright (C) 2012-2015 Sergey Poznyakoff. + Copyright (C) 2012-2018 Sergey Poznyakoff. Eclat is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -100,7 +100,7 @@ bidimap_config(int dbg, struct grecs_node *node, void *data) struct bidimap *map, **return_map = data; int i; - map = grecs_malloc(sizeof(*map)); + map = grecs_zalloc(sizeof(*map)); for (i = 0; bidimap_kw[i].ident; i++) bidimap_kw[i].varptr = map; if (grecs_tree_process(node->down, bidimap_kw)) { |