jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.581

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