aboutsummaryrefslogtreecommitdiffstats
path: root/controller/ctl-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'controller/ctl-config.c')
-rw-r--r--controller/ctl-config.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/controller/ctl-config.c b/controller/ctl-config.c
index 888b420..580c68c 100644
--- a/controller/ctl-config.c
+++ b/controller/ctl-config.c
@@ -155,6 +155,9 @@ int CtlConfigExec(CtlConfigT *ctlConfig) {
errcount += ctlConfig->sections[idx].loadCB(&ctlConfig->sections[idx], NULL);
}
return errcount;
+
+ OnErrorExit:
+ return 1;
}
CtlConfigT *CtlConfigLoad(const char* filepath, CtlSectionT *sections) {
@@ -163,7 +166,7 @@ CtlConfigT *CtlConfigLoad(const char* filepath, CtlSectionT *sections) {
int err;
#ifdef CONTROL_SUPPORT_LUA
- err= LuaConfigLoad();
+ err = LuaConfigLoad();
if (err) goto OnErrorExit;
#endif