To: vim_dev@googlegroups.com Subject: Patch 7.4a.040 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@Moolenaar.net -- 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 ///