summaryrefslogtreecommitdiffstats
path: root/src/file_gz.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-05-05 13:13:14 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2009-05-05 13:13:14 +0200
commit9d0ddd4ce3471d1f8c15845684df8c19b4876c7c (patch)
treef64678a1ce0a61b7847b980377d3b441704e89e6 /src/file_gz.c
parent8a36ff31fdfeee2ddbb3004f9157de7c3dbb42e4 (diff)
Limit the scope of several variables
Diffstat (limited to 'src/file_gz.c')
-rw-r--r--src/file_gz.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_gz.c b/src/file_gz.c
index 2a6c039..6327111 100644
--- a/src/file_gz.c
+++ b/src/file_gz.c
@@ -84,7 +84,6 @@ static int header_check_gz(const unsigned char *buffer, const unsigned int buffe
{
unsigned int off=10;
const unsigned int flags=buffer[3];
- int err;
/*
4,5,6,7: mtime
@@ -119,6 +118,7 @@ static int header_check_gz(const unsigned char *buffer, const unsigned int buffe
unsigned char buffer_uncompr[512];
const unsigned int comprLen=(buffer_size<512?buffer_size:512)-off;
const unsigned int uncomprLen=512-1;
+ int err;
z_stream d_stream; /* decompression stream */
d_stream.zalloc = (alloc_func)0;
d_stream.zfree = (free_func)0;