mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 16:08:36 +00:00
PVS fixes
* build(PVS): exclude mpack and klib as they are external dependencies * build(PVS): suppress warning V601 See https://pvs-studio.com/en/docs/warnings/v601/ * fix(PVS/V009): add top-level message * fix(PVS/V547): expression 'p != NULL' is always true * fix(PVS/V547): expression '* termpp == NULL' is always false
This commit is contained in:
@@ -169,10 +169,8 @@ static void wildescape(expand_T *xp, const char *str, int numfiles, char **files
|
||||
} else if (xp->xp_backslash & XP_BS_COMMA) {
|
||||
if (vim_strchr(files[i], ',') != NULL) {
|
||||
p = vim_strsave_escaped(files[i], ",");
|
||||
if (p != NULL) {
|
||||
xfree(files[i]);
|
||||
files[i] = p;
|
||||
}
|
||||
xfree(files[i]);
|
||||
files[i] = p;
|
||||
}
|
||||
}
|
||||
#ifdef BACKSLASH_IN_FILENAME
|
||||
|
Reference in New Issue
Block a user