summaryrefslogtreecommitdiffstats
path: root/plugins/media/media-api.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/media/media-api.c')
-rw-r--r--plugins/media/media-api.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/media/media-api.c b/plugins/media/media-api.c
index 308745d5..92e195a9 100644
--- a/plugins/media/media-api.c
+++ b/plugins/media/media-api.c
@@ -103,6 +103,8 @@ STATIC json_object* selecting (AFB_request *request) { /* AFB_SESSION_CHECK */
jresp = json_object_new_object();
json_object_object_add (jresp, "index", json_object_new_string (value));
}
+ else
+ jresp = NULL;
return jresp;
}