diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-11-30 15:08:39 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-12-19 16:36:30 +0100 |
commit | 226197a01af167b8f0dc2406ef159771e5c95565 (patch) | |
tree | 95071c21bca70553705509c3de1927fadd394dfe /ctl-lib | |
parent | 8b3c20b8c305a5a9b1872d8d5ca52a4dfa16fb71 (diff) |
Fix wrong json object pointed.
Change-Id: Id485aa5ddf8d78a1fc48922cb3c3161fb65dea1b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'ctl-lib')
-rw-r--r-- | ctl-lib/ctl-action.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ctl-lib/ctl-action.c b/ctl-lib/ctl-action.c index 0b6a8e7..8df69d0 100644 --- a/ctl-lib/ctl-action.c +++ b/ctl-lib/ctl-action.c @@ -131,7 +131,6 @@ STATIC void ActionDynRequest (AFB_ReqT request) { #endif // unpack individual action object - PUBLIC int ActionLoadOne(AFB_ApiT apiHandle, CtlActionT *action, json_object *actionJ, int exportApi) { int err, modeCount = 0; json_object *callbackJ=NULL, *luaJ=NULL, *subcallJ=NULL; @@ -189,9 +188,9 @@ PUBLIC int ActionLoadOne(AFB_ApiT apiHandle, CtlActionT *action, json_object *ac modeCount++; action->type = CTL_TYPE_API; - err = wrap_json_unpack(luaJ, "{s?s,s:s !}", "api", &action->exec.subcall.api, "verb", &action->exec.subcall.verb); + err = wrap_json_unpack(subcallJ, "{s?s,s:s !}", "api", &action->exec.subcall.api, "verb", &action->exec.subcall.verb); if (err) { - AFB_ApiError(apiHandle,"ACTION-LOAD-ONE Subcall missing [load]|func in:\n-- %s", json_object_get_string(luaJ)); + AFB_ApiError(apiHandle,"ACTION-LOAD-ONE Subcall missing [load]|func in:\n-- %s", json_object_get_string(subcallJ)); goto OnErrorExit; } } |