0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

updated for version 7.4a.040

Problem:    Win32: using uninitialized variable.
Solution:   (Yukihiro Nakadaira)
This commit is contained in:
Bram Moolenaar
2013-07-24 13:49:22 +02:00
parent 196ed14d15
commit e24a9c0b59
2 changed files with 9 additions and 9 deletions

View File

@@ -2717,21 +2717,19 @@ mch_getperm(char_u *name)
/* /*
* set file permission for `name' to `perm' * Set file permission for "name" to "perm".
* *
* return FAIL for failure, OK otherwise * Return FAIL for failure, OK otherwise.
*/ */
int int
mch_setperm( mch_setperm(char_u *name, long perm)
char_u *name,
long perm)
{ {
long n; long n = -1;
#ifdef FEAT_MBYTE #ifdef FEAT_MBYTE
WCHAR *p;
if (enc_codepage >= 0 && (int)GetACP() != enc_codepage) if (enc_codepage >= 0 && (int)GetACP() != enc_codepage)
{ {
p = enc_to_utf16(name, NULL); WCHAR *p = enc_to_utf16(name, NULL);
if (p != NULL) if (p != NULL)
{ {
@@ -2742,7 +2740,7 @@ mch_setperm(
/* Retry with non-wide function (for Windows 98). */ /* Retry with non-wide function (for Windows 98). */
} }
} }
if (p == NULL) if (n == -1)
#endif #endif
n = _chmod(name, perm); n = _chmod(name, perm);
if (n == -1) if (n == -1)

View File

@@ -727,6 +727,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
40,
/**/ /**/
39, 39,
/**/ /**/