vim-patch:8.2.1560: using NULL pointers in some code

Problem:    Using NULL pointers in some code. (James McCoy)
Solution:   Avoid adding to a NULL pointer.  Use byte as unsigned.
9c2b06637b

The changes to eval.c (skip_expr_concatenate) and vim9compile.c aren't
included since they're specific to vim9script support.
This commit is contained in:
James McCoy
2020-09-03 22:28:27 -04:00
parent ae8f108732
commit 1190192216
2 changed files with 15 additions and 11 deletions

View File

@@ -5663,6 +5663,9 @@ check_suggestions (
int len;
hlf_T attr;
if (gap->ga_len == 0) {
return;
}
stp = &SUG(*gap, 0);
for (int i = gap->ga_len - 1; i >= 0; --i) {
// Need to append what follows to check for "the the".