aboutsummaryrefslogtreecommitdiff
path: root/lib/gdbmmap.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2018-03-15 13:29:52 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2018-03-15 14:12:23 +0200
commit58a8936d30bbb18b8ad93fecfe3fe2210d1c18b2 (patch)
tree01fcd1416af582e2429f0ae8d120e2af39b8f9d9 /lib/gdbmmap.c
parent677473cdfc42b9fd83623902e80de946f108825c (diff)
downloadeclat-58a8936d30bbb18b8ad93fecfe3fe2210d1c18b2.tar.gz
eclat-58a8936d30bbb18b8ad93fecfe3fe2210d1c18b2.tar.bz2
Upgrade grecs
* grecs: pull * configure.ac: Enable json * lib/Makefile.am (AM_CPPFLAGS): Use @GRECS_INCLUDES@ (libeclat_a_SOURCES): Remove json sources. * src/Makefile.am (AM_CPPFLAGS): Use @GRECS_INCLUDES@ * tests/Makefile.am: Likewise. * lib/json.h: Remove. * lib/jsongrm.y: Remove. * lib/jsonlex.l: Remove. * tests/tjson.c: Remove. * src/config.c (eclat_kw): Mark statically initialized memory locations as such. * src/mktags.c (process_tags): Use wordsplit to process quoted arguments. * lib/bidimap.c (bidimap_config): Fill allocated memory with 0's * lib/filemap.c (filemap_config): Likewise. * lib/gdbmmap.c (gdbm_map_config): Likewise. * lib/seqmap.c (seqmap_config): Likewise.
Diffstat (limited to 'lib/gdbmmap.c')
-rw-r--r--lib/gdbmmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gdbmmap.c b/lib/gdbmmap.c
index dde6b02..a2887df 100644
--- a/lib/gdbmmap.c
+++ b/lib/gdbmmap.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
@@ -69,7 +69,7 @@ gdbm_map_config(int dbg, struct grecs_node *node, void *data)
struct grecs_node *p;
int i;
- gdbm_map = grecs_malloc(sizeof(*gdbm_map));
+ gdbm_map = grecs_zalloc(sizeof(*gdbm_map));
for (i = 0; gdbm_map_kw[i].ident; i++)
gdbm_map_kw[i].varptr = gdbm_map;
if (grecs_tree_process(node->down, gdbm_map_kw)) {

Return to:

Send suggestions and report system problems to the System administrator.