From: Bram Moolenaar Date: Sat, 10 Sep 2022 11:36:00 +0000 (+0100) Subject: patch 9.0.0435: compiler warning for uninitialized variable X-Git-Tag: v9.0.0435 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f21d546d8f80b85a1770fc4c9f48f2d92e2e82fa;p=vim patch 9.0.0435: compiler warning for uninitialized variable Problem: Compiler warning for uninitialized variable. Solution: Initialize it. --- diff --git a/src/eval.c b/src/eval.c index d69abb017..db8b4e6c9 100644 --- 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) { diff --git a/src/version.c b/src/version.c index 7b0edde67..29483f306 100644 --- a/src/version.c +++ b/src/version.c @@ -703,6 +703,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 435, /**/ 434, /**/