diff options
author | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-09-20 15:19:44 +0200 |
---|---|---|
committer | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-09-20 15:19:44 +0200 |
commit | 625ce776e0e9ed869da90659eb988ee32de4cf3b (patch) | |
tree | 1cad5ae860578afaac7d3a82f891323504f1ad19 /ctl-lib/ctl-plugin.c | |
parent | 0f708ba4074648d38319d22b8d35912925462613 (diff) |
Correct an error when no plugins are definedguppy_6.90.0guppy/6.90.06.90.0
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.c | 2 |
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); } |