aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
@@ -239,3 +239,3 @@ database_declare(const char *file, unsigned line,
}
- db = emalloc(sizeof(*db));
+ db = ecalloc(1, sizeof(*db));
db->file = estrdup(file);

Return to:

Send suggestions and report system problems to the System administrator.