summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorChloe M. <chloe@aptel.org>2026-08-23 09:42:59 +0000
committerChloe M. <chloe@aptel.org>2026-08-23 09:42:59 +0000
commitb7e9f5f5edc5463031c198c863111790dde42a62 (patch)
treedeadb5d34fbaadb6936426fcea13a00785e22f62 /core
parentcac4fb215d6469a5b26d9e1e37e7db16b478ade6 (diff)
core: deconf: A bit of refactoringmain
Signed-off-by: Chloe M. <chloe@aptel.org>
Diffstat (limited to 'core')
-rw-r--r--core/defconf.c5
1 files changed, 3 insertions, 2 deletions
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 */