From b485298fbc6893582ef4623ae6cea7643119fa49 Mon Sep 17 00:00:00 2001 From: LDA Date: Wed, 29 Jan 2025 19:15:23 +0100 Subject: [PATCH] [FIX] Log error if the config was not parsed --- src/Parsee/Config.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Parsee/Config.c b/src/Parsee/Config.c index 3b4ce45..46a391f 100644 --- a/src/Parsee/Config.c +++ b/src/Parsee/Config.c @@ -36,6 +36,12 @@ ParseeConfigLoad(char *conf) return; } json = JsonDecode(stream); + if (!json) + { + Log(LOG_ERR, "Could not parse config JSON"); + StreamClose(stream); + return; + } config = Malloc(sizeof(*config)); #define CopyToStr(to, str) config->to = StrDuplicate( \