]> granicus.if.org Git - vim/commitdiff
patch 8.2.2978: warning for uninitialized variable v8.2.2978
authorBram Moolenaar <Bram@vim.org>
Sat, 12 Jun 2021 10:33:48 +0000 (12:33 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 12 Jun 2021 10:33:48 +0000 (12:33 +0200)
Problem:    Warning for uninitialized variable.
Solution:   Set return value to FAIL.

src/eval.c
src/version.c

index 0d15a70e2bbf55283c6bfa4f1fa835b7252773e2..ca181d524f05e4c938d66de22205387829d06361 100644 (file)
@@ -3777,6 +3777,7 @@ call_func_rettv(
            if (s == NULL || *s == NUL)
            {
                emsg(_(e_empty_function_name));
+               ret = FAIL;
                goto theend;
            }
        }
index 19a159d7edd7606e8b7284fb7d58db98b3f178fe..6ae66ae28adeeda134403a1b9bf555124db5c47a 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2978,
 /**/
     2977,
 /**/