summaryrefslogtreecommitdiff
path: root/parse/node.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-10-29 18:17:29 -0700
committerOri Bernstein <ori@eigenstate.org>2017-10-29 18:17:29 -0700
commitd359a98ab9cfc42de66ad35333bd6d6c0571b7ca (patch)
tree863b83c7653535a5e0c141733a0553381052921c /parse/node.c
parent4adc2f773870b45442ed27e5e794ade92e4fe2f0 (diff)
downloadmc-d359a98ab9cfc42de66ad35333bd6d6c0571b7ca.tar.gz
Fix traits when exported cross-namespaces.
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);