diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2018-02-26 14:40:44 +0100 |
---|---|---|
committer | Marco Hinz <mh.codebro@gmail.com> | 2018-02-26 14:42:54 +0100 |
commit | e237cff0c8a2d77289983c39aa914bba76f25663 (patch) | |
tree | 64d75b4a76dc4e78ef2dbee90795a584952f0ea8 /src | |
parent | 81a520e60edf7b87843dea1e9d9dabfb6f0d8ca8 (diff) | |
download | rneovim-e237cff0c8a2d77289983c39aa914bba76f25663.tar.gz rneovim-e237cff0c8a2d77289983c39aa914bba76f25663.tar.bz2 rneovim-e237cff0c8a2d77289983c39aa914bba76f25663.zip |
vim-patch:8.0.1442: using pointer before it is set
Problem: Using pointer before it is set.
Solution: Search in whole buffer instead of next token.
https://github.com/vim/vim/commit/a172b63ab8661019dba61285a738c8b6b55a33aa
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/if_cscope.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/if_cscope.c b/src/nvim/if_cscope.c index 5bd1fdfcfb..5c3dfb0caf 100644 --- a/src/nvim/if_cscope.c +++ b/src/nvim/if_cscope.c @@ -574,7 +574,7 @@ static int cs_cnt_matches(size_t idx) // Display/discard any output that doesn't match what we want. // Accept "\S*cscope: X lines", also matches "mlcscope". // Bail out for the "Unable to search" error. - if (strstr((const char *)stok, "Unable to search database") != NULL) { + if (strstr((const char *)buf, "Unable to search database") != NULL) { break; } if ((stok = strtok(buf, (const char *)" ")) == NULL) { |