changeset 30198:f59ce7be667f v9.0.0435

patch 9.0.0435: compiler warning for uninitialized variable Commit: https://github.com/vim/vim/commit/f21d546d8f80b85a1770fc4c9f48f2d92e2e82fa Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 10 12:36:00 2022 +0100 patch 9.0.0435: compiler warning for uninitialized variable Problem: Compiler warning for uninitialized variable. Solution: Initialize it.
author Bram Moolenaar <Bram@vim.org>
date Sat, 10 Sep 2022 13:45:03 +0200
parents df7cabff92a8
children fbf0239e5530
files src/eval.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -1121,7 +1121,7 @@ get_lval(
     var2.v_type = VAR_UNKNOWN;
     while (*p == '[' || (*p == '.' && p[1] != '=' && p[1] != '.'))
     {
-	int r;
+	int r = OK;
 
 	if (*p == '.' && lp->ll_tv->v_type != VAR_DICT)
 	{
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    435,
+/**/
     434,
 /**/
     433,