summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore 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.