diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-04-26 22:11:38 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-04-26 22:11:38 +0100 |
commit | fc78a0369e0d371a1a85d07045ff25d8695e8f8c (patch) | |
tree | 8b413f4e93be00cdf0b9739b8932222d1be152ca /src/getchar.c | |
parent | 2c8a7ebdad9da017bfb6dc8a0f46acea77ec2e17 (diff) |
patch 8.2.4832: passing zero instead of NULL to a pointer argumentv8.2.4832
Problem: Passing zero instead of NULL to a pointer argument.
Solution: Use NULL. (closes #10296)
Diffstat (limited to 'src/getchar.c')
-rw-r--r-- | src/getchar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/getchar.c b/src/getchar.c index 4caa89eb3f..e208dd1a18 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -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; |