diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-10 12:36:00 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-10 12:36:00 +0100 |
commit | f21d546d8f80b85a1770fc4c9f48f2d92e2e82fa (patch) | |
tree | 387168873a877d1653aeb4228daadba9b7762b76 /src | |
parent | 9ba2786f15f0b53a90fd221832a5bedfc6dbfe20 (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')
-rw-r--r-- | src/eval.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 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) { diff --git a/src/version.c b/src/version.c index 7b0edde67f..29483f3060 100644 --- 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, |