forked from aniani/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.
This commit is contained in:
@@ -702,7 +702,7 @@ cs_cnt_matches(int idx)
|
||||
* 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)
|
||||
continue;
|
||||
|
@@ -771,6 +771,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1442,
|
||||
/**/
|
||||
1441,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user