diff options
Diffstat (limited to 'sys/libbio/io/newick.c')
-rw-r--r-- | sys/libbio/io/newick.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/libbio/io/newick.c b/sys/libbio/io/newick.c index 6370686..806feaa 100644 --- a/sys/libbio/io/newick.c +++ b/sys/libbio/io/newick.c @@ -381,12 +381,13 @@ dump(bio·Node *node, void *impl, io·Putter out) if (!node) { return 1; } + bio·Node *child; if (node->nchild) { out.put(impl, '('); - dump(node->child[0], impl, out); - for (child = node->child[1]; child != nil; child = child->sibling) { + dump(node->child, impl, out); + for (child = node->child->sibling; child != nil; child = child->sibling) { out.put(impl, ','); dump(child, impl, out); } |