diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/base64.c | 3 | ||||
-rw-r--r-- | src/nvim/cmdexpand.c | 6 | ||||
-rw-r--r-- | src/nvim/terminal.c | 2 |
3 files changed, 6 insertions, 5 deletions
diff --git a/src/nvim/base64.c b/src/nvim/base64.c index c647019fb1..f004e4fe8b 100644 --- a/src/nvim/base64.c +++ b/src/nvim/base64.c @@ -1,3 +1,6 @@ +// This is an open source non-commercial project. Dear PVS-Studio, please check +// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com + #include <assert.h> #include <stddef.h> #include <string.h> diff --git a/src/nvim/cmdexpand.c b/src/nvim/cmdexpand.c index 6b83664339..51675b81bc 100644 --- a/src/nvim/cmdexpand.c +++ b/src/nvim/cmdexpand.c @@ -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 diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c index a4ae8d2ae2..465d1d0cbc 100644 --- a/src/nvim/terminal.c +++ b/src/nvim/terminal.c @@ -259,7 +259,7 @@ void terminal_open(Terminal **termpp, buf_T *buf, TerminalOptions opts) aucmd_restbuf(&aco); - if (*termpp == NULL) { + if (*termpp == NULL) { // -V547 return; // Terminal has already been destroyed. } |