aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/command.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-29 14:44:18 +0800
committerGitHub <noreply@github.com>2022-07-29 14:44:18 +0800
commit02efdb4d587242122df99b347a25fd4c96b0ca97 (patch)
tree71d3712b243a728ba933dd845f4c0f690cd8be6d /src/nvim/api/command.c
parent0b8bade493235cda9d8ab3ed138d6c94d7cef759 (diff)
downloadrneovim-02efdb4d587242122df99b347a25fd4c96b0ca97.tar.gz
rneovim-02efdb4d587242122df99b347a25fd4c96b0ca97.tar.bz2
rneovim-02efdb4d587242122df99b347a25fd4c96b0ca97.zip
refactor: fix clang and PVS warnings (#19569)
The last commit didn't actually disable V1028 because of a typo. Fix the typo so it is actually disabled.
Diffstat (limited to 'src/nvim/api/command.c')
-rw-r--r--src/nvim/api/command.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/nvim/api/command.c b/src/nvim/api/command.c
index 96e643f1fe..33efa6b326 100644
--- a/src/nvim/api/command.c
+++ b/src/nvim/api/command.c
@@ -412,7 +412,6 @@ String nvim_cmd(uint64_t channel_id, Dict(cmd) *cmd, Dict(cmd_opts) *opts, Error
}
if (!argc_valid) {
- argc = 0; // Ensure that args array isn't erroneously freed at the end.
VALIDATION_ERROR("Incorrect number of arguments supplied");
}