From 4a1251206a7016d37a853b0c48e2b4901ef363b3 Mon Sep 17 00:00:00 2001 From: ZyX Date: Tue, 17 Apr 2018 01:07:16 +0300 Subject: path: Fix PVS/V560: condition is essentially `A && A` --- src/nvim/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/path.c b/src/nvim/path.c index 168d835a66..e3d87ff33e 100644 --- a/src/nvim/path.c +++ b/src/nvim/path.c @@ -673,7 +673,7 @@ static size_t do_path_expand(garray_T *gap, const char_u *path, // Find all matching entries. char_u *name; 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] != '.' || starts_with_dot || ((flags & EW_DODOT) -- cgit