1
0
forked from aniani/vim

patch 9.1.1225: extra NULL check in VIM_CLEAR()

Problem:  extra NULL check in VIM_CLEAR()
Solution: remove the NULL check and rely on the NULL check in vim_free()
          instead (Hirohito Higashi).

closes: #16936

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Hirohito Higashi
2025-03-19 20:25:21 +01:00
committed by Christian Brabandt
parent 40ab82b974
commit e4e0a2468c
2 changed files with 4 additions and 5 deletions

View File

@@ -360,11 +360,8 @@
*/
#define VIM_CLEAR(p) \
do { \
if ((p) != NULL) \
{ \
vim_free(p); \
(p) = NULL; \
} \
vim_free(p); \
(p) = NULL; \
} while (0)
/*

View File

@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1225,
/**/
1224,
/**/