From 744aecf8777e86fac6d30f072e90e2de353b8ea1 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 12 Jun 2021 12:33:48 +0200 Subject: [PATCH] patch 8.2.2978: warning for uninitialized variable Problem: Warning for uninitialized variable. Solution: Set return value to FAIL. --- src/eval.c | 1 + src/version.c | 2 ++ 2 files changed, 3 insertions(+) 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, /**/ -- 2.50.1