comparison src/getchar.c @ 28616:6ff407067190 v8.2.4832

patch 8.2.4832: passing zero instead of NULL to a pointer argument Commit: https://github.com/vim/vim/commit/fc78a0369e0d371a1a85d07045ff25d8695e8f8c Author: zeertzjq <zeertzjq@outlook.com> Date: Tue Apr 26 22:11:38 2022 +0100 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 https://github.com/vim/vim/issues/10296)
author Bram Moolenaar <Bram@vim.org>
date Tue, 26 Apr 2022 23:15:02 +0200
parents ce202d2984a0
children daad4c7b39be
comparison
equal deleted inserted replaced
28615:3f75d7165fc5 28616:6ff407067190
2399 } 2399 }
2400 len = mb_char2bytes(new_c, new_string); 2400 len = mb_char2bytes(new_c, new_string);
2401 if (modifier == 0) 2401 if (modifier == 0)
2402 { 2402 {
2403 if (put_string_in_typebuf(offset, 4, new_string, len, 2403 if (put_string_in_typebuf(offset, 4, new_string, len,
2404 NULL, 0, 0) == FAIL) 2404 NULL, 0, NULL) == FAIL)
2405 return -1; 2405 return -1;
2406 } 2406 }
2407 else 2407 else
2408 { 2408 {
2409 tp[2] = modifier; 2409 tp[2] = modifier;
2410 if (put_string_in_typebuf(offset + 3, 1, new_string, len, 2410 if (put_string_in_typebuf(offset + 3, 1, new_string, len,
2411 NULL, 0, 0) == FAIL) 2411 NULL, 0, NULL) == FAIL)
2412 return -1; 2412 return -1;
2413 } 2413 }
2414 return len; 2414 return len;
2415 } 2415 }
2416 } 2416 }