# HG changeset patch # User Christian Brabandt # Date 1521549906 -3600 # Node ID 23ae1853abbb73e4f24a436ff86b9ce58eb672fc # Parent b6d15fce31b112a2b9cb6ff733ee941cf75f55df patch 8.0.1622: possible NULL pointer dereference commit https://github.com/vim/vim/commit/6ed86ad170b60517eeddb54c2b22fdc888a22c0b Author: Bram Moolenaar Date: Tue Mar 20 13:30:42 2018 +0100 patch 8.0.1622: possible NULL pointer dereference Problem: Possible NULL pointer dereferencey. (Coverity) Solution: Reverse the check for a NULL pointer. diff --git a/src/quickfix.c b/src/quickfix.c --- a/src/quickfix.c +++ b/src/quickfix.c @@ -4256,7 +4256,7 @@ ex_vimgrep(exarg_T *eap) goto theend; } - if (s != NULL && *s == NUL) + if (s == NULL || *s == NUL) { /* Pattern is empty, use last search pattern. */ if (last_search_pat() == NULL) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -767,6 +767,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1622, +/**/ 1621, /**/ 1620,