# HG changeset patch # User Christian Brabandt # Date 1517349607 -3600 # Node ID bc735a129ea92c22c760f9db28971a53662f0ba9 # Parent f57fb2393fd0eec1e19956c64e9c006f2aecd331 patch 8.0.1442: using pointer before it is set commit https://github.com/vim/vim/commit/a172b63ab8661019dba61285a738c8b6b55a33aa Author: Bram Moolenaar Date: Tue Jan 30 22:52:06 2018 +0100 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 --- a/src/if_cscope.c +++ b/src/if_cscope.c @@ -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; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -772,6 +772,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1442, +/**/ 1441, /**/ 1440,