To: vim_dev@googlegroups.com Subject: Patch 8.2.2333 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2333 Problem: Vim9: warning for uninitialized variable. (Tony Mechelynck) Solution: Initialize "res". Files: src/vim9execute.c *** ../vim-8.2.2332/src/vim9execute.c 2021-01-11 22:16:26.543513760 +0100 --- src/vim9execute.c 2021-01-12 17:15:49.946158479 +0100 *************** *** 754,760 **** int argcount = argcount_arg; char_u *name = NULL; int called_emsg_before = called_emsg; ! int res; if (tv->v_type == VAR_PARTIAL) { --- 754,760 ---- int argcount = argcount_arg; char_u *name = NULL; int called_emsg_before = called_emsg; ! int res = FAIL; if (tv->v_type == VAR_PARTIAL) { *************** *** 800,806 **** vim_free(tofree); } ! if (name == NULL || res == FAIL) { if (called_emsg == called_emsg_before) semsg(_(e_unknownfunc), --- 800,806 ---- vim_free(tofree); } ! if (res == FAIL) { if (called_emsg == called_emsg_before) semsg(_(e_unknownfunc), *** ../vim-8.2.2332/src/version.c 2021-01-11 22:16:26.547513748 +0100 --- src/version.c 2021-01-12 17:16:43.758021874 +0100 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2333, /**/ -- All true wisdom is found on T-shirts. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///