aboutsummaryrefslogtreecommitdiff
path: root/lib/filemap.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/filemap.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/filemap.c')
-rw-r--r--lib/filemap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/filemap.c b/lib/filemap.c
index 6c5e286..26582ec 100644
--- a/lib/filemap.c
+++ b/lib/filemap.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
@@ -60,7 +60,7 @@ filemap_config(int dbg, struct grecs_node *node, void *data)
int i;
struct grecs_node *p;
- filemap = grecs_malloc(sizeof(*filemap));
+ filemap = grecs_zalloc(sizeof(*filemap));
for (i = 0; filemap_kw[i].ident; i++)
filemap_kw[i].varptr = filemap;
if (grecs_tree_process(node->down, filemap_kw)) {

Return to:

Send suggestions and report system problems to the System administrator.