Navigation Menu

Skip to content

Commit

Permalink
Initialize an array to quiet compiler complaining.
Browse files Browse the repository at this point in the history
Some versions of GCC think this can be used uninitialized. It doesn't appear
 to be the case, but we initialize it to keep the compiler happy. It's probably
 a good idea anyhow.
  • Loading branch information
icculus committed Mar 25, 2010
1 parent 70cf36b commit d6fbaed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archivers/zip.c
Expand Up @@ -375,7 +375,7 @@ static int ZIP_fileClose(fvoid *opaque)
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;
Expand Down

0 comments on commit d6fbaed

Please sign in to comment.