To: vim_dev@googlegroups.com Subject: Patch 9.0.1055 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.1055 Problem: Coverity warns for using uninitialized memory. Solution: Clear the "lhs" field earlier. Files: src/vim9compile.c *** ../vim-9.0.1054/src/vim9compile.c 2022-12-13 18:42:19.749879633 +0000 --- src/vim9compile.c 2022-12-14 13:48:55.234661772 +0000 *************** *** 2220,2225 **** --- 2220,2226 ---- char_u *sp; int is_decl = is_decl_command(cmdidx); lhs_T lhs; + CLEAR_FIELD(lhs); long start_lnum = SOURCING_LNUM; int has_arg_is_set_prefix = STRNCMP(arg, "ifargisset ", 11) == 0; *************** *** 2244,2251 **** if (p == NULL) return *arg == '[' ? arg : NULL; - lhs.lhs_name = NULL; - if (eap->cmdidx == CMD_increment || eap->cmdidx == CMD_decrement) { if (VIM_ISWHITE(eap->cmd[2])) --- 2245,2250 ---- *** ../vim-9.0.1054/src/version.c 2022-12-13 21:14:19.219930894 +0000 --- src/version.c 2022-12-14 13:49:36.482665782 +0000 *************** *** 697,698 **** --- 697,700 ---- { /* Add new patch number below this line */ + /**/ + 1055, /**/ -- TALL KNIGHT OF NI: Ni! "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///