mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 8.0.1622: possible NULL pointer dereference
Problem: Possible NULL pointer dereferencey. (Coverity) Solution: Reverse the check for a NULL pointer.
This commit is contained in:
@@ -4256,7 +4256,7 @@ ex_vimgrep(exarg_T *eap)
|
|||||||
goto theend;
|
goto theend;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (s != NULL && *s == NUL)
|
if (s == NULL || *s == NUL)
|
||||||
{
|
{
|
||||||
/* Pattern is empty, use last search pattern. */
|
/* Pattern is empty, use last search pattern. */
|
||||||
if (last_search_pat() == NULL)
|
if (last_search_pat() == NULL)
|
||||||
|
@@ -766,6 +766,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 */
|
||||||
|
/**/
|
||||||
|
1622,
|
||||||
/**/
|
/**/
|
||||||
1621,
|
1621,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user