Root can never be NULL in this context
This commit is contained in:
parent
18f261ad51
commit
cfca764d48
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue