From 2b54989e6f1f51020a5526704da72d48aa4aea96 Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Tue, 27 May 2014 10:06:39 +0100 Subject: [PATCH] api: fix crash on passing on no subsystem --- src/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api.c b/src/api.c index f88c2095..7af71828 100644 --- a/src/api.c +++ b/src/api.c @@ -68,7 +68,7 @@ api_exec ( const char *subsystem, htsmsg_t *args, htsmsg_t **resp ) const char *op; /* Args and response must be set */ - if (!args || !resp) + if (!args || !resp || !subsystem) return EINVAL; // Note: there is no locking while checking the hook tree, its assumed