From 5d4430a64573b174f3a25474979bfbf63f430fd2 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Fri, 8 Jun 2018 09:51:00 +0000 Subject: [PATCH] Update: Made norec parameter optional --- src/reportxml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reportxml.c b/src/reportxml.c index 1d749ca2..23bc10bc 100644 --- a/src/reportxml.c +++ b/src/reportxml.c @@ -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 {