From 625ce776e0e9ed869da90659eb988ee32de4cf3b Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Thu, 20 Sep 2018 15:19:44 +0200 Subject: 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 --- ctl-lib/ctl-plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ctl-lib') 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); } -- cgit 1.2.3-korg