From 037a877a8369aa75ed0c59e5729db7577db2b8d0 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(-) 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