aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ctl-lib/ctl-action.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ctl-lib/ctl-action.c b/ctl-lib/ctl-action.c
index d8d5729..75ad551 100644
--- a/ctl-lib/ctl-action.c
+++ b/ctl-lib/ctl-action.c
@@ -59,10 +59,8 @@ int ActionExecOne(CtlSourceT *source, CtlActionT* action, json_object *queryJ) {
{
json_object *returnJ, *toReturnJ;
- json_type typeJ = json_object_get_type(queryJ);
-
if (action->argsJ) {
- switch(typeJ) {
+ switch(json_object_get_type(queryJ)) {
case json_type_object: {
json_object_object_foreach(action->argsJ, key, val) {
json_object_get(val);