api: fix crash on passing on no subsystem
This commit is contained in:
parent
c8a392e1fa
commit
2b54989e6f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue