From: Bram Moolenaar Date: Sat, 12 Jun 2021 10:33:48 +0000 (+0200) Subject: patch 8.2.2978: warning for uninitialized variable X-Git-Tag: v8.2.2978 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=744aecf8777e86fac6d30f072e90e2de353b8ea1;p=vim patch 8.2.2978: warning for uninitialized variable Problem: Warning for uninitialized variable. Solution: Set return value to FAIL. --- 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 @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2978, /**/ 2977, /**/