summaryrefslogtreecommitdiffstats
path: root/controller/ctl-action.c
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-09-15 16:29:17 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-12-14 11:00:25 +0100
commit677cde6288a4574b8251a4a532b1d9e1594b09b2 (patch)
treec510a0cdd76e2b8de1cdaf254fd270c8bfebae42 /controller/ctl-action.c
parenteabae24ea592420de46e36f0b1af5d39eee5b8a4 (diff)
Subscription by plugin to signals
Change-Id: Icb923f87df2be8eb664106bc9077b3a8221dd3ce Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'controller/ctl-action.c')
-rw-r--r--controller/ctl-action.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/controller/ctl-action.c b/controller/ctl-action.c
index 5da24e8..8e2db1a 100644
--- a/controller/ctl-action.c
+++ b/controller/ctl-action.c
@@ -28,7 +28,6 @@
int ActionExecOne(CtlActionT* action, json_object *queryJ) {
int err;
-
switch (action->type) {
case CTL_TYPE_API:
{
@@ -146,7 +145,7 @@ OnErrorExit:
};
CtlActionT *ActionLoad(json_object *actionsJ) {
- int err;
+ int err = 0;
CtlActionT *actions;
// action array is close with a nullvalue;