summaryrefslogtreecommitdiff
path: root/parse/node.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-12-21 02:07:01 -0800
committerOri Bernstein <ori@eigenstate.org>2014-12-21 02:07:01 -0800
commitdd2752bb02095b9852928da15d994940fd1af972 (patch)
tree4d1724742a9ee86e2c5a3cf0794e546999a05eab /parse/node.c
parent2956d456959512a3e8b550899465395e033f7929 (diff)
downloadmc-dd2752bb02095b9852928da15d994940fd1af972.tar.gz
Traits are more worky.
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 38f03ea..3a598ce 100644
--- a/parse/node.c
+++ b/parse/node.c
@@ -429,6 +429,7 @@ int nameeq(void *p1, void *p2)
void setns(Node *n, char *ns)
{
+ assert(!n->name.ns || !strcmp(n->name.ns, ns));
n->name.ns = strdup(ns);
}