0
0
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:
zeertzjq
2022-04-26 22:11:38 +01:00
committed by Bram Moolenaar
parent 2c8a7ebdad
commit fc78a0369e
3 changed files with 9 additions and 5 deletions

View File

@@ -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;