summaryrefslogtreecommitdiffstats
path: root/ctl-lib/ctl-plugin.c
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-12 17:44:41 +0100
commit8e49f8deefafd2dda3f540542bbee74b35251a47 (patch)
tree4f722f07c9b02b7a3530a4dba89440be9504ca55 /ctl-lib/ctl-plugin.c
parent73eec54d63281626545d9290dc818f530f81f9f3 (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/ctl-plugin.c')
-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);
}