mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +00:00
if_cscope: Fix PVS/V560: condition would result in earlier return
Previous block just checks for totmatches being zero and returns if it is. And totmatches is unsigned, so `totmatches > 0` may never be true.
This commit is contained in:
@@ -1001,8 +1001,8 @@ static int cs_find_common(char *opt, char *pat, int forceit, int verbose,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (qfpos != NULL && *qfpos != '0' && totmatches > 0) {
|
||||
/* fill error list */
|
||||
if (qfpos != NULL && *qfpos != '0') {
|
||||
// Fill error list.
|
||||
FILE *f;
|
||||
char_u *tmp = vim_tempname();
|
||||
qf_info_T *qi = NULL;
|
||||
|
Reference in New Issue
Block a user