diff options
author | Ihor Antonov <ngortheone@users.noreply.github.com> | 2019-08-09 05:24:30 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-08-09 11:24:30 +0200 |
commit | 3c0d6375925a7fbc22c82c0af47b42f036317eee (patch) | |
tree | 34de930668f78a79b0bd6d6cdf584bedc9aa94c4 /src | |
parent | 8a56bd944a944cf77a0b9f44b59098dae05b07a0 (diff) | |
download | rneovim-3c0d6375925a7fbc22c82c0af47b42f036317eee.tar.gz rneovim-3c0d6375925a7fbc22c82c0af47b42f036317eee.tar.bz2 rneovim-3c0d6375925a7fbc22c82c0af47b42f036317eee.zip |
clang/"Null passed as a nonnull parameter" #10718
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/search.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c index 7d46b3b4d5..fe4fdf57ba 100644 --- a/src/nvim/search.c +++ b/src/nvim/search.c @@ -4242,6 +4242,7 @@ static void search_stat(int dirc, pos_T *pos, // STRNICMP ignores case, but we should not ignore case. // Unfortunately, there is no STRNICMP function. if (!(chgtick == buf_get_changedtick(curbuf) + && lastpat != NULL // supress clang/NULL passed as nonnull parameter && STRNICMP(lastpat, spats[last_idx].pat, STRLEN(lastpat)) == 0 && STRLEN(lastpat) == STRLEN(spats[last_idx].pat) && equalpos(lastpos, curwin->w_cursor) |