aboutsummaryrefslogtreecommitdiff
path: root/sys/libbio/phylo.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/libbio/phylo.c')
-rw-r--r--sys/libbio/phylo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/libbio/phylo.c b/sys/libbio/phylo.c
index c5fd3ed..c1ace7a 100644
--- a/sys/libbio/phylo.c
+++ b/sys/libbio/phylo.c
@@ -52,7 +52,7 @@ phylo·countleafs(bio·Node *node, int *n)
error err;
bio·Node *child;
- if (node->nchild) {
+ if (!node->nchild) {
*n += 1;
}