summaryrefslogtreecommitdiff
path: root/core/defconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/defconf.c')
-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 */