]> granicus.if.org Git - vim/commitdiff
patch 8.2.0326: compiler warning for using uninitialized variable v8.2.0326
authorBram Moolenaar <Bram@vim.org>
Thu, 27 Feb 2020 20:48:51 +0000 (21:48 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 27 Feb 2020 20:48:51 +0000 (21:48 +0100)
Problem:    Compiler warning for using uninitialized variable. (Yegappan
            Lakshmanan)
Solution:   Do not jump to failed but return.

src/version.c
src/vim9execute.c

index 7028ffdbf322e4803df0f44df32566685a304d60..ad279466ef092139bdb1c613f9081cc5981c98de 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    326,
 /**/
     325,
 /**/
index 9ecb8657e6f19b3f84f58a0ad46968c36d254028..5c5fcb1573330e195637f1f02d8a62200d24426f 100644 (file)
@@ -436,7 +436,7 @@ call_def_function(
     vim_memset(&ectx, 0, sizeof(ectx));
     ga_init2(&ectx.ec_stack, sizeof(typval_T), 500);
     if (ga_grow(&ectx.ec_stack, 20) == FAIL)
-       goto failed;
+       return FAIL;
     ectx.ec_dfunc_idx = ufunc->uf_dfunc_idx;
 
     ga_init2(&ectx.ec_trystack, sizeof(trycmd_T), 10);