Commit 5d4430a6 authored by Philipp Schafft's avatar Philipp Schafft 🦁

Update: Made norec parameter optional

parent 6f8270dc
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment