summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2010-06-28 21:05:17 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2010-06-28 21:05:17 (GMT)
commit5cf0337446ebc1bc831813443baec167ea5b7f47 (patch) (side-by-side diff)
treeb50f4798af9f96a6c2a66526e31944ef30176342
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 (more/less context) (show whitespace changes)
-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.