Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / zlib / google / zip_internal.cc
index 6349b7a..5ed2024 100644 (file)
@@ -37,13 +37,11 @@ typedef struct {
 // Its only difference is that it treats the char* as UTF8 and
 // uses the Unicode version of CreateFile.
 void* ZipOpenFunc(void *opaque, const char* filename, int mode) {
-  DWORD desired_access, creation_disposition;
-  DWORD share_mode, flags_and_attributes;
+  DWORD desired_access = 0, creation_disposition = 0;
+  DWORD share_mode = 0, flags_and_attributes = 0;
   HANDLE file = 0;
   void* ret = NULL;
 
-  desired_access = share_mode = flags_and_attributes = 0;
-
   if ((mode & ZLIB_FILEFUNC_MODE_READWRITEFILTER) == ZLIB_FILEFUNC_MODE_READ) {
     desired_access = GENERIC_READ;
     creation_disposition = OPEN_EXISTING;