Merged changeset 1084:ee3d2e6e1161 from stable-2.0: unitialized array fix.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 25 Mar 2010 16:00:21 -0400
changeset 1085 1ad575ce53c8
parent 1079 c218c384331e
child 1086 e2515a0fdec1
Merged changeset 1084:ee3d2e6e1161 from stable-2.0: unitialized array fix.
src/archiver_zip.c
--- a/src/archiver_zip.c	Mon Mar 22 16:03:17 2010 -0400
+++ b/src/archiver_zip.c	Thu Mar 25 16:00:21 2010 -0400
@@ -373,7 +373,7 @@
 static PHYSFS_sint64 zip_find_end_of_central_dir(void *in, PHYSFS_sint64 *len)
 {
     PHYSFS_uint8 buf[256];
-    PHYSFS_uint8 extra[4];
+    PHYSFS_uint8 extra[4] = { 0, 0, 0, 0 };
     PHYSFS_sint32 i = 0;
     PHYSFS_sint64 filelen;
     PHYSFS_sint64 filepos;