From 4066768fd28f266e58c6ac7329345beb13caf793 Mon Sep 17 00:00:00 2001 From: dborth Date: Thu, 27 Oct 2011 04:12:30 +0000 Subject: [PATCH] --- source/gcunzip.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/source/gcunzip.cpp b/source/gcunzip.cpp index f35f82c..00e5e61 100644 --- a/source/gcunzip.cpp +++ b/source/gcunzip.cpp @@ -83,9 +83,7 @@ FLIP16 (u16 b) int IsZipFile (char *buffer) { - unsigned int *check; - - check = (unsigned int *) buffer; + unsigned int *check = (unsigned int *) buffer; if (check[0] == 0x504b0304) return 1; @@ -275,9 +273,6 @@ static int szMethod = 0; int Is7ZipFile (char *buffer) { - unsigned int *check; - check = (unsigned int *) buffer; - // 7z signature static Byte Signature[6] = {'7', 'z', 0xBC, 0xAF, 0x27, 0x1C};