From 8939bd549dc612b3e46d49b93fda9866fcf76a26 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Fri, 4 Dec 2015 15:51:04 -0800 Subject: [PATCH] Fix named child count computation Signed-off-by: Josh Vera --- src/runtime/tree.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime/tree.c b/src/runtime/tree.c index 2e2a5d89..04aa6e5f 100644 --- a/src/runtime/tree.c +++ b/src/runtime/tree.c @@ -69,6 +69,7 @@ void ts_tree_assign_parents(TSTree *self) { void ts_tree_set_children(TSTree *self, size_t child_count, TSTree **children) { self->children = children; self->child_count = child_count; + self->named_child_count = 0; self->visible_child_count = 0; for (size_t i = 0; i < child_count; i++) { TSTree *child = children[i];