aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/radio
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/radio')
-rw-r--r--plugins/radio/radio-api.c2
1 files changed, 2 insertions, 0 deletions
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;
}