diff options
author | Dundar Goc <gocdundar@gmail.com> | 2022-05-06 23:17:04 +0200 |
---|---|---|
committer | Dundar Goc <gocdundar@gmail.com> | 2022-05-06 23:17:56 +0200 |
commit | 11631354cb6b6ca28a1bfb712719ace53c763c77 (patch) | |
tree | 6bc82164dafda1f16d52153c7b7483ea8e3dc1c6 | |
parent | 44a4af0ed02db7f4f1cce8c64935238b4efbee12 (diff) | |
download | rneovim-11631354cb6b6ca28a1bfb712719ace53c763c77.tar.gz rneovim-11631354cb6b6ca28a1bfb712719ace53c763c77.tar.bz2 rneovim-11631354cb6b6ca28a1bfb712719ace53c763c77.zip |
vim-patch:8.2.4469: Coverity warns for uninitialized variable
Problem: Coverity warns for uninitialized variable.
Solution: Set the value to zero.
https://github.com/vim/vim/commit/05c1734c4f70a0d7fb2f06444e26afda018f8795
-rw-r--r-- | src/nvim/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index d910b47c57..548dd96444 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -6632,7 +6632,7 @@ void get_user_input(const typval_T *const argvars, typval_T *const rettv, const // input() with a third argument: completion const int xp_namelen = (int)strlen(xp_name); - uint32_t argt; + uint32_t argt = 0; if (parse_compl_arg(xp_name, xp_namelen, &xp_type, &argt, &xp_arg) == FAIL) { return; |