summaryrefslogtreecommitdiffstats
path: root/ctl-lib
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-09-20 15:19:44 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-12-13 15:02:55 +0100
commit037a877a8369aa75ed0c59e5729db7577db2b8d0 (patch)
tree1cad5ae860578afaac7d3a82f891323504f1ad19 /ctl-lib
parentb70147ae683296b62034e531340148a63cec0d3a (diff)
Correct an error when no plugins are defined
Correct an error when 'PluginConfig' function is called while no plugins are defined in passed json. Change-Id: I281a18f601f8ca1b7dfedfe48d1de37f4e9eded4 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'ctl-lib')
-rw-r--r--ctl-lib/ctl-plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctl-lib/ctl-plugin.c b/ctl-lib/ctl-plugin.c
index 2347518..5d3ae1f 100644
--- a/ctl-lib/ctl-plugin.c
+++ b/ctl-lib/ctl-plugin.c
@@ -453,7 +453,7 @@ int PluginConfig(AFB_ApiT apiHandle, CtlSectionT *section, json_object *pluginsJ
}
return 0;
}
- else
+ else if(pluginsJ)
{
err = PluginParse(apiHandle, section, pluginsJ, &pluginNb);
}