diff src/vim9compile.c @ 20966:0ee7de260208 v8.2.1034

patch 8.2.1034: compiler warning for uninitialized variables Commit: https://github.com/vim/vim/commit/38041da1c263f5840f21e15484d7ccb30999ed62 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 21 22:17:18 2020 +0200 patch 8.2.1034: compiler warning for uninitialized variables Problem: Compiler warning for uninitialized variables. Solution: Add initializations. (John Marriott)
author Bram Moolenaar <Bram@vim.org>
date Sun, 21 Jun 2020 22:30:03 +0200
parents 0e01976dfd3b
children d561e3c6cd65
line wrap: on
line diff
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -4357,9 +4357,9 @@ compile_expr1(char_u **arg,  cctx_T *cct
 	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;