aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-11-29 19:22:33 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-11-29 19:28:15 +0100
commit008aaf7413b800198037af4b8f3cf57e1447fa98 (patch)
treed93e6c6cea1b7c83e38adf1eb65806aab8c73393
parenta698f9798b3cac338af1e766932d34bc3b9c3aa1 (diff)
Wrong increment always fails load an action
Change-Id: I7a8a3ac4846f1190caf1a4dde066e50dc592d58b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r--ctl-lib/ctl-action.c1
1 files changed, 0 insertions, 1 deletions
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;
}