HADOOP-11193. Fix uninitialized variables in NativeIO.c. Contributed by Xiaoyu Yao.

This commit is contained in:
Haohui Mai 2014-10-10 23:02:22 -07:00
parent fff6a1f77e
commit 16710758f1
3 changed files with 6 additions and 3 deletions

View File

@ -483,6 +483,9 @@ Release 2.6.0 - UNRELEASED
HADOOP-11133. Should trim the content of keystore password file for JavaKeyStoreProvider
(Yi Liu via umamahesh)
HADOOP-11193. Fix uninitialized variables in NativeIO.c
(Xiaoyu Yao via wheat9)
BREAKDOWN OF HDFS-6134 AND HADOOP-10150 SUBTASKS AND RELATED JIRAS
HADOOP-10734. Implement high-performance secure random number sources.

View File

@ -275,7 +275,7 @@ cleanup:
#ifdef WINDOWS
LPWSTR owner = NULL;
LPWSTR group = NULL;
int mode;
int mode = 0;
jstring jstr_owner = NULL;
jstring jstr_group = NULL;
int rc;

View File

@ -807,8 +807,8 @@ DWORD FindFileOwnerAndPermission(
DWORD cbSid = SECURITY_MAX_SID_SIZE;
PACL pDacl = NULL;
BOOL isSymlink;
BY_HANDLE_FILE_INFORMATION fileInformation;
BOOL isSymlink = FALSE;
BY_HANDLE_FILE_INFORMATION fileInformation = {0};
ACCESS_MASK ownerAccessRights = 0;
ACCESS_MASK groupAccessRights = 0;