diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-05-21 18:56:58 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-05-21 18:56:58 +0100 |
commit | 5a01caa90428a5f87600528d68529383c0b2f78c (patch) | |
tree | 7c8e52c725b449c319eee9d96b1b33525790e76a /src/vim9execute.c | |
parent | 93c1573dd284dc9cf5ed9265a0143aaf520d2920 (diff) | |
download | vim-git-5a01caa90428a5f87600528d68529383c0b2f78c.tar.gz |
patch 8.2.4992: compiler warning for possibly uninitialized variablev8.2.4992
Problem: Compiler warning for possibly uninitialized variable. (Tony
Mechelynck)
Solution: Initialize variable in the caller instead of in the function.
Diffstat (limited to 'src/vim9execute.c')
-rw-r--r-- | src/vim9execute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vim9execute.c b/src/vim9execute.c index d89f44236..eb07a38c3 100644 --- a/src/vim9execute.c +++ b/src/vim9execute.c @@ -6281,7 +6281,7 @@ ex_disassemble(exarg_T *eap) dfunc_T *dfunc; isn_T *instr; int instr_count; - compiletype_T compile_type; + compiletype_T compile_type = CT_NONE; ufunc = find_func_by_name(arg, &compile_type); if (ufunc == NULL) |