mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
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.
a172b63ab8
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user