summaryrefslogtreecommitdiff
path: root/parse/node.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-12-18 23:30:37 -0800
committerOri Bernstein <ori@eigenstate.org>2014-12-18 23:32:19 -0800
commitb1eb90e0d575a1016ef176a8cea9735e5420fb8a (patch)
tree0d50d5597e7ee37048c18e710f5dc66f818cc0b5 /parse/node.c
parent23f37b9d690c2c40819606a0e8be63c7206bfc1e (diff)
downloadmc-b1eb90e0d575a1016ef176a8cea9735e5420fb8a.tar.gz
Get rid of the 'exports' stab.
This should simplify a number of chunks of code.
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 65f93e5..66337fa 100644
--- a/parse/node.c
+++ b/parse/node.c
@@ -403,6 +403,7 @@ int nameeq(void *p1, void *p2)
void setns(Node *n, char *ns)
{
+ assert(!n->name.ns || streq(n->name.ns, ns));
n->name.ns = strdup(ns);
}