aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval/userfunc.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/eval/userfunc.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/eval/userfunc.c')
-rw-r--r--src/nvim/eval/userfunc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval/userfunc.c b/src/nvim/eval/userfunc.c
index 7283fb3cec..a90148bf23 100644
--- a/src/nvim/eval/userfunc.c
+++ b/src/nvim/eval/userfunc.c
@@ -1268,7 +1268,7 @@ void free_all_functions(void)
// Clean up the current_funccal chain and the funccal stack.
while (current_funccal != NULL) {
tv_clear(current_funccal->rettv);
- cleanup_function_call(current_funccal);
+ cleanup_function_call(current_funccal); // -V595
if (current_funccal == NULL && funccal_stack != NULL) {
restore_funccal();
}