patch 8.2.1034: compiler warning for uninitialized variables
Problem: Compiler warning for uninitialized variables.
Solution: Add initializations. (John Marriott)
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 52ca9e2..033a8d9 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -4357,9 +4357,9 @@
garray_T *instr = &cctx->ctx_instr;
garray_T *stack = &cctx->ctx_type_stack;
int alt_idx = instr->ga_len;
- int end_idx;
+ int end_idx = 0;
isn_T *isn;
- type_T *type1;
+ type_T *type1 = NULL;
type_T *type2;
int has_const_expr = FALSE;
int const_value = FALSE;