diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-06-29 00:05:17 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-06-29 00:05:17 +0300 |
commit | 5cf0337446ebc1bc831813443baec167ea5b7f47 (patch) | |
tree | b50f4798af9f96a6c2a66526e31944ef30176342 | |
parent | a5840ea9469993e89a23be9e1a647c3c72614f9e (diff) | |
download | smap-5cf0337446ebc1bc831813443baec167ea5b7f47.tar.gz smap-5cf0337446ebc1bc831813443baec167ea5b7f47.tar.bz2 |
Bugfix
* src/module.c (database_declare): Initialize db to 0 (db->openeb
was not initialized).
-rw-r--r-- | src/module.c | 2 |
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 @@ -238,5 +238,5 @@ database_declare(const char *file, unsigned line, return 1; } - db = emalloc(sizeof(*db)); + db = ecalloc(1, sizeof(*db)); db->file = estrdup(file); db->line = line; |