diff options
| author | Chloe M. <chloe@aptel.org> | 2026-08-23 09:42:59 +0000 |
|---|---|---|
| committer | Chloe M. <chloe@aptel.org> | 2026-08-23 09:42:59 +0000 |
| commit | b7e9f5f5edc5463031c198c863111790dde42a62 (patch) | |
| tree | deadb5d34fbaadb6936426fcea13a00785e22f62 /core | |
| parent | cac4fb215d6469a5b26d9e1e37e7db16b478ade6 (diff) | |
core: deconf: A bit of refactoringmain
Signed-off-by: Chloe M. <chloe@aptel.org>
Diffstat (limited to 'core')
| -rw-r--r-- | core/defconf.c | 5 |
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 */ |
