mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 10:26:31 +00:00
fix(test): fix issues detected by running unittests in ASAN/UBSAN
This commit is contained in:
@@ -1182,7 +1182,7 @@ static size_t check_node(MarkTree *b, mtnode_t *x, mtpos_t *last, bool *last_rig
|
||||
assert(x->ptr[i] != x->ptr[j]);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
} else if (x->n > 0) {
|
||||
*last = x->key[x->n - 1].pos;
|
||||
}
|
||||
return n_keys;
|
||||
|
Reference in New Issue
Block a user