Merge pull request #18452 from dundargoc/vim-8.2.4469

vim-patch:8.2.4469: Coverity warns for uninitialized variable
This commit is contained in:
zeertzjq 2022-05-07 06:47:56 +08:00 committed by GitHub
commit b2a8ed0855
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;