diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-06-12 12:33:48 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-06-12 12:33:48 +0200 |
commit | 744aecf8777e86fac6d30f072e90e2de353b8ea1 (patch) | |
tree | 6b71e47c58aa8469456ce9914b689873a5a21190 | |
parent | 22db0d549f64aa3d8a6e366b70eb8d7e66933b82 (diff) | |
download | vim-git-744aecf8777e86fac6d30f072e90e2de353b8ea1.tar.gz |
patch 8.2.2978: warning for uninitialized variablev8.2.2978
Problem: Warning for uninitialized variable.
Solution: Set return value to FAIL.
-rw-r--r-- | src/eval.c | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index 0d15a70e2..ca181d524 100644 --- a/src/eval.c +++ b/src/eval.c @@ -3777,6 +3777,7 @@ call_func_rettv( if (s == NULL || *s == NUL) { emsg(_(e_empty_function_name)); + ret = FAIL; goto theend; } } diff --git a/src/version.c b/src/version.c index 19a159d7e..6ae66ae28 100644 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2978, +/**/ 2977, /**/ 2976, |