diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2023-01-27 21:03:12 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-01-27 21:03:12 +0000 |
commit | fadc02a2a57755fa1342b1b44c2ceab3046125fc (patch) | |
tree | 8e013a61d40bcca51deff9aa21cda2c51b96f41f /src/digraph.c | |
parent | 8dbab1d8ceb82a0fb693a1b7fcb57a2dfb4de068 (diff) |
patch 9.0.1251: checking returned value of ga_grow() is inconsistentv9.0.1251
Problem: Checking returned value of ga_grow() is inconsistent.
Solution: Check for FAIL instaed of "not OK". (Yegappan Lakshmanan,
closes #11897)
Diffstat (limited to 'src/digraph.c')
-rw-r--r-- | src/digraph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/digraph.c b/src/digraph.c index ac51d50a79..fb45c15248 100644 --- a/src/digraph.c +++ b/src/digraph.c @@ -1682,7 +1682,7 @@ registerdigraph(int char1, int char2, int n) } // Add a new digraph to the table. - if (ga_grow(&user_digraphs, 1) != OK) + if (ga_grow(&user_digraphs, 1) == FAIL) return; dp = (digr_T *)user_digraphs.ga_data + user_digraphs.ga_len; |