aboutsummaryrefslogtreecommitdiff
path: root/src/module.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2010-06-29 00:05:17 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2010-06-29 00:05:17 +0300
commit5cf0337446ebc1bc831813443baec167ea5b7f47 (patch)
treeb50f4798af9f96a6c2a66526e31944ef30176342 /src/module.c
parenta5840ea9469993e89a23be9e1a647c3c72614f9e (diff)
downloadsmap-5cf0337446ebc1bc831813443baec167ea5b7f47.tar.gz
smap-5cf0337446ebc1bc831813443baec167ea5b7f47.tar.bz2
Bugfix
* src/module.c (database_declare): Initialize db to 0 (db->openeb was not initialized).
Diffstat (limited to 'src/module.c')
-rw-r--r--src/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/module.c b/src/module.c
index bcd28db..70e9ee1 100644
--- a/src/module.c
+++ b/src/module.c
@@ -237,7 +237,7 @@ database_declare(const char *file, unsigned line,
*pdb = db;
return 1;
}
- db = emalloc(sizeof(*db));
+ db = ecalloc(1, sizeof(*db));
db->file = estrdup(file);
db->line = line;
db->id = estrdup(id);

Return to:

Send suggestions and report system problems to the System administrator.