3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.581
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.581
3ef2ca
Problem:    Compiler warnings for unitinialized variables. (John Little)
3ef2ca
Solution:   Initialize the variables.
3ef2ca
Files:	    src/ops.c
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.580/src/ops.c	2014-12-17 21:00:44.989871256 +0100
3ef2ca
--- src/ops.c	2015-01-18 14:06:49.480786101 +0100
3ef2ca
***************
3ef2ca
*** 5663,5670 ****
3ef2ca
      int		set_prev = FALSE;
3ef2ca
      char_u	*str;
3ef2ca
      char_u	**array = NULL;
3ef2ca
!     int		new_type;
3ef2ca
!     colnr_T	new_width;
3ef2ca
  
3ef2ca
      /* We only get here (hopefully) if line[0] == '"' */
3ef2ca
      str = virp->vir_line + 1;
3ef2ca
--- 5663,5670 ----
3ef2ca
      int		set_prev = FALSE;
3ef2ca
      char_u	*str;
3ef2ca
      char_u	**array = NULL;
3ef2ca
!     int		new_type = MCHAR; /* init to shut up compiler */
3ef2ca
!     colnr_T	new_width = 0; /* init to shut up compiler */
3ef2ca
  
3ef2ca
      /* We only get here (hopefully) if line[0] == '"' */
3ef2ca
      str = virp->vir_line + 1;
3ef2ca
***************
3ef2ca
*** 5747,5752 ****
3ef2ca
--- 5747,5753 ----
3ef2ca
  		do_it = FALSE;
3ef2ca
  	}
3ef2ca
      }
3ef2ca
+ 
3ef2ca
      if (do_it)
3ef2ca
      {
3ef2ca
  	/* free y_array[] */
3ef2ca
*** ../vim-7.4.580/src/version.c	2015-01-14 21:21:56.924743601 +0100
3ef2ca
--- src/version.c	2015-01-18 14:07:36.712268926 +0100
3ef2ca
***************
3ef2ca
*** 743,744 ****
3ef2ca
--- 743,746 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     581,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
From "know your smileys":
3ef2ca
 :-D	Big smile
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///