Patch 8.2.5017

5 views
Skip to first unread message

Bram Moolenaar

unread,
May 25, 2022, 12:31:51 PM5/25/22
to vim...@googlegroups.com

Patch 8.2.5017
Problem: Gcc 12.1 warns for uninitialized variable.
Solution: Initialize the variable. (closes #10476)
Files: src/evalvars.c


*** ../vim-8.2.5016/src/evalvars.c 2022-05-10 18:11:39.623454291 +0100
--- src/evalvars.c 2022-05-25 17:26:37.567635834 +0100
***************
*** 2023,2029 ****
{
hashtab_T *ht;
hashitem_T *hi;
! char_u *varname;
dict_T *d;
dictitem_T *di;

--- 2023,2029 ----
{
hashtab_T *ht;
hashitem_T *hi;
! char_u *varname = NULL; // init to shut up gcc
dict_T *d;
dictitem_T *di;

*** ../vim-8.2.5016/src/version.c 2022-05-25 15:15:34.739409287 +0100
--- src/version.c 2022-05-25 17:27:50.547528962 +0100
***************
*** 736,737 ****
--- 736,739 ----
{ /* Add new patch number below this line */
+ /**/
+ 5017,
/**/

--
Back up my hard drive? I can't find the reverse switch!

/// Bram Moolenaar -- Br...@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 ///
Reply all
Reply to author
Forward
0 new messages