aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2018-04-17 01:07:16 +0300
committerZyX <kp-pav@yandex.ru>2018-04-17 01:07:16 +0300
commit4a1251206a7016d37a853b0c48e2b4901ef363b3 (patch)
tree4b8c044c807e6de8ce6a968d79216a9de474fe9f
parentfab09ea0d6e8b8bd161c24341e6cdf64e80ae871 (diff)
downloadrneovim-4a1251206a7016d37a853b0c48e2b4901ef363b3.tar.gz
rneovim-4a1251206a7016d37a853b0c48e2b4901ef363b3.tar.bz2
rneovim-4a1251206a7016d37a853b0c48e2b4901ef363b3.zip
path: Fix PVS/V560: condition is essentially `A && A`
-rw-r--r--src/nvim/path.c2
1 files changed, 1 insertions, 1 deletions
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)