Mercurial > vim
comparison src/ex_getln.c @ 27887:7a60eaa9cb26 v8.2.4469
patch 8.2.4469: Coverity warns for uninitialized variable
Commit: https://github.com/vim/vim/commit/05c1734c4f70a0d7fb2f06444e26afda018f8795
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Feb 25 20:57:11 2022 +0000
patch 8.2.4469: Coverity warns for uninitialized variable
Problem: Coverity warns for uninitialized variable.
Solution: Set the value to zero.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 25 Feb 2022 22:00:04 +0100 |
parents | 515ce8e07bf2 |
children | 06535d568f74 |
comparison
equal
deleted
inserted
replaced
27886:ec78ff0c14ce | 27887:7a60eaa9cb26 |
---|---|
4670 | 4670 |
4671 if (!inputdialog && argvars[2].v_type != VAR_UNKNOWN) | 4671 if (!inputdialog && argvars[2].v_type != VAR_UNKNOWN) |
4672 { | 4672 { |
4673 char_u *xp_name; | 4673 char_u *xp_name; |
4674 int xp_namelen; | 4674 int xp_namelen; |
4675 long argt; | 4675 long argt = 0; |
4676 | 4676 |
4677 // input() with a third argument: completion | 4677 // input() with a third argument: completion |
4678 rettv->vval.v_string = NULL; | 4678 rettv->vval.v_string = NULL; |
4679 | 4679 |
4680 xp_name = tv_get_string_buf_chk(&argvars[2], buf); | 4680 xp_name = tv_get_string_buf_chk(&argvars[2], buf); |