From 6abf6ad7ffeb40f375d49b6c2964c5c3cb2e5062 Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Tue, 18 Sep 2018 12:38:29 +0200 Subject: Call wasn't done correctly in 'CtlConfigExec' Call wasn't done correctly in 'CtlConfigExec', some functions were not call by 'CtlConfigExec' when it should be ... Change-Id: I5ce44e616042868c349bd5637c56267b8eff72e1 Signed-off-by: Jonathan Aillet --- ctl-lib/ctl-config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctl-lib/ctl-config.c b/ctl-lib/ctl-config.c index e815f2c..f583158 100644 --- a/ctl-lib/ctl-config.c +++ b/ctl-lib/ctl-config.c @@ -153,7 +153,7 @@ int CtlConfigExec(AFB_ApiT apiHandle, CtlConfigT *ctlConfig) { for (int idx = 0; ctlConfig->sections[idx].key != NULL; idx++) { if (!ctlConfig->sections[idx].loadCB) AFB_ApiNotice(apiHandle, "CtlConfigLoad: notice empty section '%s'", ctlConfig->sections[idx].key); - else if (ctlConfig->sections[idx].actions) + else errcount += ctlConfig->sections[idx].loadCB(apiHandle, &ctlConfig->sections[idx], NULL); } -- cgit 1.2.3-korg