commit | f21d546d8f80b85a1770fc4c9f48f2d92e2e82fa | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Sep 10 12:36:00 2022 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Sep 10 12:36:00 2022 +0100 |
tree | 387168873a877d1653aeb4228daadba9b7762b76 | |
parent | 9ba2786f15f0b53a90fd221832a5bedfc6dbfe20 [diff] [blame] |
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 d69abb0..db8b4e6 100644 --- a/src/eval.c +++ b/src/eval.c
@@ -1121,7 +1121,7 @@ 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) {