From 4bf3794c7f58a88cc071e46d1d6a283ffcb162d9 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Wed, 29 Nov 2017 19:22:33 +0100 Subject: Wrong increment always fails load an action Change-Id: I7a8a3ac4846f1190caf1a4dde066e50dc592d58b Signed-off-by: Romain Forlot --- ctl-lib/ctl-action.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ctl-lib/ctl-action.c b/ctl-lib/ctl-action.c index 41ce70b..0b6a8e7 100644 --- a/ctl-lib/ctl-action.c +++ b/ctl-lib/ctl-action.c @@ -199,7 +199,6 @@ PUBLIC int ActionLoadOne(AFB_ApiT apiHandle, CtlActionT *action, json_object *ac if (callbackJ) { modeCount++; action->type = CTL_TYPE_CB; - modeCount++; err = PluginGetCB (apiHandle, action, callbackJ); if (err) goto OnErrorExit; } -- cgit 1.2.3-korg