summaryrefslogtreecommitdiff
path: root/src/vim9execute.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-05-21 18:56:58 +0100
committerBram Moolenaar <Bram@vim.org>2022-05-21 18:56:58 +0100
commit5a01caa90428a5f87600528d68529383c0b2f78c (patch)
tree7c8e52c725b449c319eee9d96b1b33525790e76a /src/vim9execute.c
parent93c1573dd284dc9cf5ed9265a0143aaf520d2920 (diff)
downloadvim-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.c2
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)