diff src/vim9execute.c @ 28940:b02044bc8c20 v8.2.4992

patch 8.2.4992: compiler warning for possibly uninitialized variable Commit: https://github.com/vim/vim/commit/5a01caa90428a5f87600528d68529383c0b2f78c Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 21 18:56:58 2022 +0100 patch 8.2.4992: compiler warning for possibly uninitialized variable Problem: Compiler warning for possibly uninitialized variable. (Tony Mechelynck) Solution: Initialize variable in the caller instead of in the function.
author Bram Moolenaar <Bram@vim.org>
date Sat, 21 May 2022 20:00:03 +0200
parents a712ea475390
children e78e398fff3d
line wrap: on
line diff
--- 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)