summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-11-29 19:23:33 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-12-19 16:36:30 +0100
commit20e24cc1b5fce11e55520c07427a361967eeac0d (patch)
tree374762e4e781b2bb2a4183a3816eb8db69e793c2
parent493eb5530df11f2978ebcfb3e0311a0042fd771d (diff)
wrong json unpacking fails.
Change-Id: Ie0246192b014c3550207fab1fb6512aeb6e5bce1 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-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 557f85e..6ec1ace 100644
--- a/ctl-lib/ctl-plugin.c
+++ b/ctl-lib/ctl-plugin.c
@@ -36,7 +36,7 @@ PUBLIC int PluginGetCB (AFB_ApiT apiHandle, CtlActionT *action , json_object *ca
goto OnErrorExit;
}
- int err = wrap_json_unpack(callbackJ, "{ss,ss,s?s,s?o!}",
+ int err = wrap_json_unpack(callbackJ, "{ss,ss,s?o!}",
"plugin", &plugin,
"function", &function,
"args", &argsJ);