X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=plugins%2Fradio%2Fradio-api.c;h=ea17eb511827eb20ae63edd34e41f5e34525801e;hb=1309721790b7b2aeb29658b8907c99fcaabf85a5;hp=919a875f6745832f077ea43b074a1cf7f40520d9;hpb=2f5957984835ffc7d4f03bb0094a93c575e3eb17;p=src%2Fapp-framework-binder.git diff --git a/plugins/radio/radio-api.c b/plugins/radio/radio-api.c index 919a875f..ea17eb51 100644 --- a/plugins/radio/radio-api.c +++ b/plugins/radio/radio-api.c @@ -176,6 +176,8 @@ STATIC json_object* power (AFB_request *request) { /* AFB_SESSION_CHECK */ jresp = json_object_new_object(); json_object_object_add (jresp, "power", json_object_new_string ("off")); } + else + jresp = NULL; return jresp; }