summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/if_cscope.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/if_cscope.c b/src/if_cscope.c
index f796cd9276..8866435ddb 100644
--- a/src/if_cscope.c
+++ b/src/if_cscope.c
@@ -1008,7 +1008,7 @@ cs_find_common(opt, pat, forceit, verbose, use_ll)
totmatches = 0;
for (i = 0; i < CSCOPE_MAX_CONNECTIONS; i++)
{
- if (csinfo[i].fname == NULL)
+ if (csinfo[i].fname == NULL || csinfo[i].to_fp == NULL)
continue;
/* send cmd to cscope */
diff --git a/src/version.c b/src/version.c
index eb55641f12..f0bb45ae0d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -667,6 +667,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 166,
+/**/
165,
/**/
164,