mirror of
https://github.com/vim/vim.git
synced 2025-10-28 09:27:14 -04:00
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.
This commit is contained in:
@@ -3606,6 +3606,8 @@ check_suggestions(
|
||||
int len;
|
||||
hlf_T attr;
|
||||
|
||||
if (gap->ga_len == 0)
|
||||
return;
|
||||
stp = &SUG(*gap, 0);
|
||||
for (i = gap->ga_len - 1; i >= 0; --i)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user