1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

Update: Made norec parameter optional

This commit is contained in:
Philipp Schafft 2018-06-08 09:51:00 +00:00
parent 6f8270dcfb
commit 5d4430a645

View File

@ -767,7 +767,7 @@ static int __attach_copy_of_node_or_definition(reportxml_node_t *parent, reportx
if (depth >= 2) {
definition = reportxml_node_get_attribute(node, "definition");
if (definition) {
if (strcmp(definition, norec) == 0) {
if (norec != NULL && strcmp(definition, norec) == 0) {
/* we've already proccessed this. No need to look it up. */
free(definition);
} else {