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.
diff --git a/src/if_cscope.c b/src/if_cscope.c
index 9466c34..4bf28ad 100644
--- a/src/if_cscope.c
+++ b/src/if_cscope.c
@@ -702,7 +702,7 @@
* 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;