Skip to content

Commit 6ed86ad

Browse files
committed
patch 8.0.1622: possible NULL pointer dereference
Problem: Possible NULL pointer dereferencey. (Coverity) Solution: Reverse the check for a NULL pointer.
1 parent 6185903 commit 6ed86ad

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/quickfix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4256,7 +4256,7 @@ ex_vimgrep(exarg_T *eap)
42564256
goto theend;
42574257
}
42584258

4259-
if (s != NULL && *s == NUL)
4259+
if (s == NULL || *s == NUL)
42604260
{
42614261
/* Pattern is empty, use last search pattern. */
42624262
if (last_search_pat() == NULL)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,8 @@ static char *(features[]) =
766766

767767
static int included_patches[] =
768768
{ /* Add new patch number below this line */
769+
/**/
770+
1622,
769771
/**/
770772
1621,
771773
/**/

0 commit comments

Comments
 (0)