Patch 8.2.4794

5 views
Skip to first unread message

Bram Moolenaar

unread,
Apr 20, 2022, 5:24:20 AM4/20/22
to vim...@googlegroups.com

Patch 8.2.4794
Problem: Compiler warning for not initialized variable.
Solution: Initialize the variable. (John Marriott)
Files: src/indent.c


*** ../vim-8.2.4793/src/indent.c 2022-04-19 18:28:41.395860397 +0100
--- src/indent.c 2022-04-20 10:20:37.334402710 +0100
***************
*** 1046,1052 ****
void
op_reindent(oparg_T *oap, int (*how)(void))
{
! long i;
char_u *l;
int amount;
linenr_T first_changed = 0;
--- 1046,1052 ----
void
op_reindent(oparg_T *oap, int (*how)(void))
{
! long i = 0;
char_u *l;
int amount;
linenr_T first_changed = 0;
*** ../vim-8.2.4793/src/version.c 2022-04-19 19:38:34.385576220 +0100
--- src/version.c 2022-04-20 10:21:27.130376628 +0100
***************
*** 748,749 ****
--- 748,751 ----
{ /* Add new patch number below this line */
+ /**/
+ 4794,
/**/

--
Q: Why do Norwegians excel at text editing?
A: Their ancestors are Vi-kings

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