From f6f73885996237f60ea3a2d5827f1fc264662ca1 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sun, 16 Aug 2015 10:37:40 -0700 Subject: [PATCH] rtmp-services: Fix warning The return value is supposed to be a boolean value; not NULL. --- plugins/rtmp-services/rtmp-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/rtmp-services/rtmp-common.c b/plugins/rtmp-services/rtmp-common.c index a56d40aa5..b0bb1c762 100644 --- a/plugins/rtmp-services/rtmp-common.c +++ b/plugins/rtmp-services/rtmp-common.c @@ -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); }