Skip to content

Commit

Permalink
XML: improved XMLNode.$tags handler.
Browse files Browse the repository at this point in the history
  • Loading branch information
xeioex committed Nov 7, 2024
1 parent 597b1fd commit e476ef9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions external/njs_xml_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -1318,12 +1318,12 @@ njs_xml_node_tags_handler(njs_vm_t *vm, xmlNode *current, njs_str_t *name,
xmlFreeNode(node);
goto error;
}
}

ret = xmlReconciliateNs(current->doc, copy);
if (njs_slow_path(ret == -1)) {
njs_vm_internal_error(vm, "xmlReconciliateNs() failed");
goto error;
}
ret = xmlReconciliateNs(current->doc, copy);
if (njs_slow_path(ret == -1)) {
njs_vm_internal_error(vm, "xmlReconciliateNs() failed");
goto error;
}

njs_value_undefined_set(retval);
Expand Down

0 comments on commit e476ef9

Please sign in to comment.