Patch 9.0.0075

2 views
Skip to first unread message

Bram Moolenaar

unread,
Jul 26, 2022, 6:43:11 AM7/26/22
to vim...@googlegroups.com

Patch 9.0.0075
Problem: Some compilers warn for using an uninitialized variable. (Tony
Mechelynck)
Solution: Initialize the variable.
Files: src/drawline.c


*** ../vim-9.0.0074/src/drawline.c 2022-07-25 21:15:40.878155498 +0100
--- src/drawline.c 2022-07-26 11:40:01.192107427 +0100
***************
*** 1486,1492 ****
text_prop_id = 0;
if (text_props_active > 0)
{
! int used_tpi;
int used_attr = 0;

// Sort the properties on priority and/or starting last.
--- 1486,1492 ----
text_prop_id = 0;
if (text_props_active > 0)
{
! int used_tpi = -1;
int used_attr = 0;

// Sort the properties on priority and/or starting last.
***************
*** 1514,1520 ****
used_tpi = tpi;
}
}
! if (n_extra == 0 && text_prop_id < 0
&& -text_prop_id
<= wp->w_buffer->b_textprop_text.ga_len)
{
--- 1514,1520 ----
used_tpi = tpi;
}
}
! if (n_extra == 0 && text_prop_id < 0 && used_tpi >= 0
&& -text_prop_id
<= wp->w_buffer->b_textprop_text.ga_len)
{
*** ../vim-9.0.0074/src/version.c 2022-07-26 11:20:45.116283126 +0100
--- src/version.c 2022-07-26 11:41:42.060029919 +0100
***************
*** 737,738 ****
--- 737,740 ----
{ /* Add new patch number below this line */
+ /**/
+ 75,
/**/

--
hundred-and-one symptoms of being an internet addict:
127. You bring your laptop and cellular phone to church.

/// 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