mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
path: Fix PVS/V560: condition is essentially A && A
This commit is contained in:
parent
fab09ea0d6
commit
4a1251206a
@ -673,7 +673,7 @@ static size_t do_path_expand(garray_T *gap, const char_u *path,
|
|||||||
// Find all matching entries.
|
// Find all matching entries.
|
||||||
char_u *name;
|
char_u *name;
|
||||||
scandir_next_with_dots(NULL); // initialize
|
scandir_next_with_dots(NULL); // initialize
|
||||||
while ((name = (char_u *) scandir_next_with_dots(&dir)) && name != NULL) {
|
while ((name = (char_u *)scandir_next_with_dots(&dir)) != NULL) {
|
||||||
if ((name[0] != '.'
|
if ((name[0] != '.'
|
||||||
|| starts_with_dot
|
|| starts_with_dot
|
||||||
|| ((flags & EW_DODOT)
|
|| ((flags & EW_DODOT)
|
||||||
|
Loading…
Reference in New Issue
Block a user