aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/alsa/alsa-api-sndloops.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/alsa/alsa-api-sndloops.c')
-rw-r--r--plugins/alsa/alsa-api-sndloops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/alsa/alsa-api-sndloops.c b/plugins/alsa/alsa-api-sndloops.c
index be12c11..cf7bf55 100644
--- a/plugins/alsa/alsa-api-sndloops.c
+++ b/plugins/alsa/alsa-api-sndloops.c
@@ -139,6 +139,7 @@ OnErrorExit:
CTLP_LUA2C(snd_loops, source, argsJ, responseJ) {
int error;
AlsaSndLoopT *sndLoop = calloc(1, sizeof (AlsaSndLoopT));
+
if (json_object_get_type(argsJ) != json_type_object) {
AFB_ApiError(source->api, "L2C:sndloops: invalid object type= %s", json_object_get_string(argsJ));