mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 9.0.1251: checking returned value of ga_grow() is inconsistent
Problem: Checking returned value of ga_grow() is inconsistent. Solution: Check for FAIL instaed of "not OK". (Yegappan Lakshmanan, closes #11897)
This commit is contained in:
committed by
Bram Moolenaar
parent
8dbab1d8ce
commit
fadc02a2a5
@@ -2739,7 +2739,7 @@ findtags_add_match(
|
||||
if (HASHITEM_EMPTY(hi))
|
||||
{
|
||||
if (hash_add_item(&st->ht_match[mtt], hi, mfp, *hash) == FAIL
|
||||
|| ga_grow(&st->ga_match[mtt], 1) != OK)
|
||||
|| ga_grow(&st->ga_match[mtt], 1) == FAIL)
|
||||
{
|
||||
// Out of memory! Just forget about the rest.
|
||||
st->stop_searching = TRUE;
|
||||
|
Reference in New Issue
Block a user