Blame SOURCES/7.4.113

22c937
To: vim_dev@googlegroups.com
22c937
Subject: Patch 7.4.113
22c937
Fcc: outbox
22c937
From: Bram Moolenaar <Bram@moolenaar.net>
22c937
Mime-Version: 1.0
22c937
Content-Type: text/plain; charset=UTF-8
22c937
Content-Transfer-Encoding: 8bit
22c937
------------
22c937
22c937
Patch 7.4.113
22c937
Problem:    MSVC static analysis gives warnings.
22c937
Solution:   Avoid the warnings and avoid possible bugs. (Ken Takata)
22c937
Files:	    src/os_win32.c
22c937
22c937
22c937
*** ../vim-7.4.112/src/os_win32.c	2013-11-21 12:34:07.000000000 +0100
22c937
--- src/os_win32.c	2013-12-07 14:41:35.000000000 +0100
22c937
***************
22c937
*** 2509,2515 ****
22c937
      WCHAR		*porig, *porigPrev;
22c937
      int			flen;
22c937
      WIN32_FIND_DATAW	fb;
22c937
!     HANDLE		hFind;
22c937
      int			c;
22c937
      int			slen;
22c937
  
22c937
--- 2509,2515 ----
22c937
      WCHAR		*porig, *porigPrev;
22c937
      int			flen;
22c937
      WIN32_FIND_DATAW	fb;
22c937
!     HANDLE		hFind = INVALID_HANDLE_VALUE;
22c937
      int			c;
22c937
      int			slen;
22c937
  
22c937
***************
22c937
*** 2528,2535 ****
22c937
  	/* copy leading drive letter */
22c937
  	*ptrue++ = *porig++;
22c937
  	*ptrue++ = *porig++;
22c937
- 	*ptrue = NUL;	    /* in case nothing follows */
22c937
      }
22c937
  
22c937
      while (*porig != NUL)
22c937
      {
22c937
--- 2528,2535 ----
22c937
  	/* copy leading drive letter */
22c937
  	*ptrue++ = *porig++;
22c937
  	*ptrue++ = *porig++;
22c937
      }
22c937
+     *ptrue = NUL;	    /* in case nothing follows */
22c937
  
22c937
      while (*porig != NUL)
22c937
      {
22c937
***************
22c937
*** 2673,2680 ****
22c937
  	/* copy leading drive letter */
22c937
  	*ptrue++ = *porig++;
22c937
  	*ptrue++ = *porig++;
22c937
- 	*ptrue = NUL;	    /* in case nothing follows */
22c937
      }
22c937
  
22c937
      while (*porig != NUL)
22c937
      {
22c937
--- 2673,2680 ----
22c937
  	/* copy leading drive letter */
22c937
  	*ptrue++ = *porig++;
22c937
  	*ptrue++ = *porig++;
22c937
      }
22c937
+     *ptrue = NUL;	    /* in case nothing follows */
22c937
  
22c937
      while (*porig != NUL)
22c937
      {
22c937
***************
22c937
*** 6272,6277 ****
22c937
--- 6272,6278 ----
22c937
  		    while (i > 0)
22c937
  			free(argv[--i]);
22c937
  		    free(argv);
22c937
+ 		    argv = NULL;
22c937
  		    argc = 0;
22c937
  		}
22c937
  	    }
22c937
*** ../vim-7.4.112/src/version.c	2013-12-07 14:32:04.000000000 +0100
22c937
--- src/version.c	2013-12-07 14:37:48.000000000 +0100
22c937
***************
22c937
*** 740,741 ****
22c937
--- 740,743 ----
22c937
  {   /* Add new patch number below this line */
22c937
+ /**/
22c937
+     113,
22c937
  /**/
22c937
22c937
-- 
22c937
How To Keep A Healthy Level Of Insanity:
22c937
15. Five days in advance, tell your friends you can't attend their
22c937
    party because you're not in the mood.
22c937
22c937
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
22c937
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
22c937
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
22c937
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///