1
0
forked from aniani/vim

updated for version 7.0078

This commit is contained in:
Bram Moolenaar
2005-06-01 21:51:55 +00:00
parent 2c29beed4c
commit d6f676daaf
8 changed files with 24 additions and 14 deletions

View File

@@ -1726,6 +1726,7 @@ cs_file_results(f, nummatches_a)
*
* get parsed cscope output and calls cs_make_vim_style_matches to convert
* into ctags format
* When there are no matches sets "*matches_p" to NULL.
*/
static void
cs_fill_results(tagstr, totmatches, nummatches_a, matches_p, cntxts_p, matched)
@@ -1790,9 +1791,18 @@ cs_fill_results(tagstr, totmatches, nummatches_a, matches_p, cntxts_p, matched)
} /* for all cscope connections */
parse_out:
if (totsofar == 0)
{
/* No matches, free the arrays and return NULL in "*matches_p". */
vim_free(matches);
matches = NULL;
vim_free(cntxts);
cntxts = NULL;
}
*matched = totsofar;
*matches_p = matches;
*cntxts_p = cntxts;
vim_free(buf);
} /* cs_fill_results */