Patch 7.4a.040
Problem:    Win32: using uninitialized variable.
Solution:   (Yukihiro Nakadaira)
Files:      src/os_win32.c


*** ../vim-7.4a.039/src/os_win32.c      2013-07-03 18:29:08.000000000 +0200
--- src/os_win32.c      2013-07-24 13:41:19.000000000 +0200
***************
*** 2717,2737 ****
  
  
  /*
!  * set file permission for `name' to `perm'
   *
!  * return FAIL for failure, OK otherwise
   */
      int
! mch_setperm(
!     char_u  *name,
!     long    perm)
  {
!     long      n;
  #ifdef FEAT_MBYTE
-     WCHAR *p;
      if (enc_codepage >= 0 && (int)GetACP() != enc_codepage)
      {
!       p = enc_to_utf16(name, NULL);
  
        if (p != NULL)
        {
--- 2717,2735 ----
  
  
  /*
!  * Set file permission for "name" to "perm".
   *
!  * Return FAIL for failure, OK otherwise.
   */
      int
! mch_setperm(char_u *name, long perm)
  {
!     long      n = -1;
! 
  #ifdef FEAT_MBYTE
      if (enc_codepage >= 0 && (int)GetACP() != enc_codepage)
      {
!       WCHAR *p = enc_to_utf16(name, NULL);
  
        if (p != NULL)
        {
***************
*** 2742,2748 ****
            /* Retry with non-wide function (for Windows 98). */
        }
      }
!     if (p == NULL)
  #endif
        n = _chmod(name, perm);
      if (n == -1)
--- 2740,2746 ----
            /* Retry with non-wide function (for Windows 98). */
        }
      }
!     if (n == -1)
  #endif
        n = _chmod(name, perm);
      if (n == -1)
*** ../vim-7.4a.039/src/version.c       2013-07-21 18:59:19.000000000 +0200
--- src/version.c       2013-07-24 13:35:01.000000000 +0200
***************
*** 729,730 ****
--- 729,732 ----
  {   /* Add new patch number below this line */
+ /**/
+     40,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
20. When looking at a pageful of someone else's links, you notice all of them
    are already highlighted in purple.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui