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:
committed by
Christian Brabandt
parent
40ab82b974
commit
e4e0a2468c
@@ -360,11 +360,8 @@
|
|||||||
*/
|
*/
|
||||||
#define VIM_CLEAR(p) \
|
#define VIM_CLEAR(p) \
|
||||||
do { \
|
do { \
|
||||||
if ((p) != NULL) \
|
|
||||||
{ \
|
|
||||||
vim_free(p); \
|
vim_free(p); \
|
||||||
(p) = NULL; \
|
(p) = NULL; \
|
||||||
} \
|
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1225,
|
||||||
/**/
|
/**/
|
||||||
1224,
|
1224,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user