0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.0326: compiler warning for using uninitialized variable

Problem:    Compiler warning for using uninitialized variable. (Yegappan
            Lakshmanan)
Solution:   Do not jump to failed but return.
This commit is contained in:
Bram Moolenaar
2020-02-27 21:48:51 +01:00
parent 578fe947e3
commit d5aec0ced1
2 changed files with 3 additions and 1 deletions

View File

@@ -738,6 +738,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
326,
/**/ /**/
325, 325,
/**/ /**/

View File

@@ -436,7 +436,7 @@ call_def_function(
vim_memset(&ectx, 0, sizeof(ectx)); vim_memset(&ectx, 0, sizeof(ectx));
ga_init2(&ectx.ec_stack, sizeof(typval_T), 500); ga_init2(&ectx.ec_stack, sizeof(typval_T), 500);
if (ga_grow(&ectx.ec_stack, 20) == FAIL) if (ga_grow(&ectx.ec_stack, 20) == FAIL)
goto failed; return FAIL;
ectx.ec_dfunc_idx = ufunc->uf_dfunc_idx; ectx.ec_dfunc_idx = ufunc->uf_dfunc_idx;
ga_init2(&ectx.ec_trystack, sizeof(trycmd_T), 10); ga_init2(&ectx.ec_trystack, sizeof(trycmd_T), 10);