summaryrefslogtreecommitdiff
path: root/parse/node.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-10-07 19:22:17 -0400
committerOri Bernstein <ori@eigenstate.org>2014-10-07 19:22:17 -0400
commit6b45f935bd240eb066fe4edd49b8cd0853bc5dd9 (patch)
tree6f379d22a368325442f05122e1c3dcdba905cee5 /parse/node.c
parentefd6df04602a973f146e93797ffd057ae277f175 (diff)
downloadmc-6b45f935bd240eb066fe4edd49b8cd0853bc5dd9.tar.gz
Add support for storing file ids.
Diffstat (limited to 'parse/node.c')
-rw-r--r--parse/node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse/node.c b/parse/node.c
index cdd0eb9..159e8ae 100644
--- a/parse/node.c
+++ b/parse/node.c
@@ -34,7 +34,7 @@ Node *mkfile(char *name)
Node *n;
n = mknode(-1, Nfile);
- n->file.name = strdup(name);
+ lappend(&n->file.files, &n->file.nfiles, strdup(name));
return n;
}