From b7e9f5f5edc5463031c198c863111790dde42a62 Mon Sep 17 00:00:00 2001 From: "Chloe M." Date: Sun, 23 Aug 2026 09:42:59 +0000 Subject: core: deconf: A bit of refactoring Signed-off-by: Chloe M. --- core/defconf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/defconf.c b/core/defconf.c index be55708..53e2bdf 100644 --- a/core/defconf.c +++ b/core/defconf.c @@ -27,8 +27,9 @@ defconf_run(void) struct defconf_state state; int error; - if (defconf_state_init(config_path, &state) < 0) { - return -1; + error = defconf_state_init(config_path, &state); + if (error < 0) { + return error; } /* Begin parsing the config */ -- cgit v1.2.3