summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/config-parser.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/config-parser.c b/common/config-parser.c
index f303abe..23f57a4 100644
--- a/common/config-parser.c
+++ b/common/config-parser.c
@@ -125,6 +125,9 @@ cfg_parse_file(const char* filename, void* data, char** memory)
ASSERT(filename);
config = read_config_file(filename, data);
+ if(!config)
+ goto finally;
+
next = config;
/* Go through lines and process them */