Root can never be NULL in this context

This commit is contained in:
Phil Turnbull 2017-06-15 07:47:16 -04:00
parent 18f261ad51
commit cfca764d48

View file

@ -839,7 +839,7 @@ static void parser__accept(Parser *self, StackVersion version,
if (parser__select_tree(self, self->finished_tree, root)) {
ts_tree_release(self->finished_tree);
assert((root == NULL) || (root->ref_count > 0));
assert(root && root->ref_count > 0);
self->finished_tree = root;
} else {
ts_tree_release(root);