rtmp-services: Fix warning

The return value is supposed to be a boolean value; not NULL.
This commit is contained in:
jp9000 2015-08-16 10:37:40 -07:00
parent 8efbcc599a
commit f6f7388599

View File

@ -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);
}