mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.4832: passing zero instead of NULL to a pointer argument
Problem: Passing zero instead of NULL to a pointer argument. Solution: Use NULL. (closes #10296)
This commit is contained in:
@@ -2401,14 +2401,14 @@ check_simplify_modifier(int max_offset)
|
||||
if (modifier == 0)
|
||||
{
|
||||
if (put_string_in_typebuf(offset, 4, new_string, len,
|
||||
NULL, 0, 0) == FAIL)
|
||||
NULL, 0, NULL) == FAIL)
|
||||
return -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
tp[2] = modifier;
|
||||
if (put_string_in_typebuf(offset + 3, 1, new_string, len,
|
||||
NULL, 0, 0) == FAIL)
|
||||
NULL, 0, NULL) == FAIL)
|
||||
return -1;
|
||||
}
|
||||
return len;
|
||||
|
Reference in New Issue
Block a user