Karsten Hopp 9c86fd
To: vim_dev@googlegroups.com
Karsten Hopp 9c86fd
Subject: Patch 7.4.778
Karsten Hopp 9c86fd
Fcc: outbox
Karsten Hopp 9c86fd
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 9c86fd
Mime-Version: 1.0
Karsten Hopp 9c86fd
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 9c86fd
Content-Transfer-Encoding: 8bit
Karsten Hopp 9c86fd
------------
Karsten Hopp 9c86fd
Karsten Hopp 9c86fd
Patch 7.4.778
Karsten Hopp 9c86fd
Problem:    Coverity warns for uninitialized variable.
Karsten Hopp 9c86fd
Solution:   Change condition of assignment.
Karsten Hopp 9c86fd
Files:      src/ops.c
Karsten Hopp 9c86fd
Karsten Hopp 9c86fd
Karsten Hopp 9c86fd
*** ../vim-7.4.777/src/ops.c	2015-07-03 12:44:01.735748596 +0200
Karsten Hopp 9c86fd
--- src/ops.c	2015-07-10 21:44:12.118882050 +0200
Karsten Hopp 9c86fd
***************
Karsten Hopp 9c86fd
*** 5702,5711 ****
Karsten Hopp 9c86fd
  	/* reset */
Karsten Hopp 9c86fd
  	subtract = FALSE;
Karsten Hopp 9c86fd
  	negative = FALSE;
Karsten Hopp 9c86fd
! 	if (visual && VIsual_mode != Ctrl_V)
Karsten Hopp 9c86fd
! 	    col = 0;
Karsten Hopp 9c86fd
! 	else
Karsten Hopp 9c86fd
  	    col = startcol;
Karsten Hopp 9c86fd
  	Prenum1 += offset;
Karsten Hopp 9c86fd
  	curwin->w_set_curswant = TRUE;
Karsten Hopp 9c86fd
  #ifdef FEAT_RIGHTLEFT
Karsten Hopp 9c86fd
--- 5702,5711 ----
Karsten Hopp 9c86fd
  	/* reset */
Karsten Hopp 9c86fd
  	subtract = FALSE;
Karsten Hopp 9c86fd
  	negative = FALSE;
Karsten Hopp 9c86fd
! 	if (visual && VIsual_mode == Ctrl_V)
Karsten Hopp 9c86fd
  	    col = startcol;
Karsten Hopp 9c86fd
+ 	else
Karsten Hopp 9c86fd
+ 	    col = 0;
Karsten Hopp 9c86fd
  	Prenum1 += offset;
Karsten Hopp 9c86fd
  	curwin->w_set_curswant = TRUE;
Karsten Hopp 9c86fd
  #ifdef FEAT_RIGHTLEFT
Karsten Hopp 9c86fd
*** ../vim-7.4.777/src/version.c	2015-07-10 19:21:45.667489110 +0200
Karsten Hopp 9c86fd
--- src/version.c	2015-07-10 22:37:05.097309995 +0200
Karsten Hopp 9c86fd
***************
Karsten Hopp 9c86fd
*** 743,744 ****
Karsten Hopp 9c86fd
--- 743,746 ----
Karsten Hopp 9c86fd
  {   /* Add new patch number below this line */
Karsten Hopp 9c86fd
+ /**/
Karsten Hopp 9c86fd
+     778,
Karsten Hopp 9c86fd
  /**/
Karsten Hopp 9c86fd
Karsten Hopp 9c86fd
-- 
Karsten Hopp 9c86fd
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 9c86fd
206. You religiously respond immediately to e-mail, while ignoring
Karsten Hopp 9c86fd
     your growing pile of snail mail.
Karsten Hopp 9c86fd
Karsten Hopp 9c86fd
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 9c86fd
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 9c86fd
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 9c86fd
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///