From fc78a0369e0d371a1a85d07045ff25d8695e8f8c Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Tue, 26 Apr 2022 22:11:38 +0100 Subject: 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) --- src/getchar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/getchar.c') 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; -- cgit v1.2.3