summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.c b/config.c
index 8f5722b..5f464d1 100644
--- a/config.c
+++ b/config.c
@@ -138,6 +138,8 @@ config *parse_config(const char *filename) {
return NULL;
}
+ memset(cfg, 0, sizeof(config));
+
while (*tmp != '\0') {
char *line = get_line(&tmp);
char *value;