rtmp-services: Fix warning
The return value is supposed to be a boolean value; not NULL.
This commit is contained in:
parent
8efbcc599a
commit
f6f7388599
@ -58,7 +58,7 @@ static inline bool get_bool_val(json_t *service, const char *key)
|
||||
{
|
||||
json_t *bool_val = json_object_get(service, key);
|
||||
if (!bool_val || !json_is_boolean(bool_val))
|
||||
return NULL;
|
||||
return false;
|
||||
|
||||
return json_is_true(bool_val);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user