mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
path: Silence PVS/V557: impossible to reach with NUL-terminated string
This commit is contained in:
@@ -677,7 +677,8 @@ static size_t do_path_expand(garray_T *gap, const char_u *path,
|
||||
if ((name[0] != '.'
|
||||
|| starts_with_dot
|
||||
|| ((flags & EW_DODOT)
|
||||
&& name[1] != NUL && (name[1] != '.' || name[2] != NUL)))
|
||||
&& name[1] != NUL
|
||||
&& (name[1] != '.' || name[2] != NUL))) // -V557
|
||||
&& ((regmatch.regprog != NULL && vim_regexec(®match, name, 0))
|
||||
|| ((flags & EW_NOTWILD)
|
||||
&& fnamencmp(path + (s - buf), name, e - s) == 0))) {
|
||||
|
Reference in New Issue
Block a user