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 -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220726104301.AC5271C07D4%40moolenaar.net.

Raspunde prin e-mail lui