summaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-09-10 12:36:00 +0100
committerBram Moolenaar <Bram@vim.org>2022-09-10 12:36:00 +0100
commitf21d546d8f80b85a1770fc4c9f48f2d92e2e82fa (patch)
tree387168873a877d1653aeb4228daadba9b7762b76 /src/eval.c
parent9ba2786f15f0b53a90fd221832a5bedfc6dbfe20 (diff)
patch 9.0.0435: compiler warning for uninitialized variablev9.0.0435
Problem: Compiler warning for uninitialized variable. Solution: Initialize it.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c
index d69abb0172..db8b4e6c98 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)
{