From b93ac5a94ef358af253754ebd34c4fbc5b0c46df Mon Sep 17 00:00:00 2001 From: Marvin Scholz Date: Sun, 19 Apr 2020 03:58:31 +0200 Subject: [PATCH] Fix: Fixed check for root node in reportxml --- src/reportxml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reportxml.c b/src/reportxml.c index afed1966..067ac7ef 100644 --- a/src/reportxml.c +++ b/src/reportxml.c @@ -1343,7 +1343,7 @@ reportxml_t * reportxml_database_build_report(reportxml_database_t *db } root = reportxml_get_root_node(ret); - if (!ret) { + if (!root) { refobject_unref(definition); refobject_unref(ret); ICECAST_LOG_ERROR("Can not get root node from report. BAD.");