To: vim_dev@googlegroups.com Subject: Patch 8.2.4023 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.4023 Problem: Using uninitialized variable. Solution: Initialize "ufunc" also when an item is not exported. Files: src/vim9script.c *** ../vim-8.2.4022/src/vim9script.c 2022-01-06 21:10:24.465027868 +0000 --- src/vim9script.c 2022-01-06 22:04:49.948209923 +0000 *************** *** 565,570 **** --- 565,571 ---- if (idx >= 0) { sv = ((svar_T *)script->sn_var_vals.ga_data) + idx; + *ufunc = NULL; if (!sv->sv_export) { if (verbose) *************** *** 572,578 **** return -1; } *type = sv->sv_type; - *ufunc = NULL; } else { --- 573,578 ---- *** ../vim-8.2.4022/src/version.c 2022-01-06 21:41:07.653593304 +0000 --- src/version.c 2022-01-06 22:05:44.724115947 +0000 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 4023, /**/ -- A man is incomplete until he's married ... and then he's finished! /// 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 ///