summaryrefslogtreecommitdiff
path: root/parse/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse/node.c')
-rw-r--r--parse/node.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse/node.c b/parse/node.c
index f6827de..6e9a8ce 100644
--- a/parse/node.c
+++ b/parse/node.c
@@ -553,6 +553,7 @@ nameeq(void *p1, void *p2)
void
setns(Node *n, char *ns)
{
+ assert(!ns || !n->name.ns || !strcmp(n->name.ns, ns));
if (!ns)
return;
n->name.ns = strdup(ns);