summaryrefslogtreecommitdiffstats
path: root/src/file_7z.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_7z.c
parent8a36ff31fdfeee2ddbb3004f9157de7c3dbb42e4 (diff)
Limit the scope of several variables
Diffstat (limited to 'src/file_7z.c')
-rw-r--r--src/file_7z.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file_7z.c b/src/file_7z.c
index b580925..d170e94 100644
--- a/src/file_7z.c
+++ b/src/file_7z.c
@@ -62,9 +62,9 @@ static void register_header_check_7z(file_stat_t *file_stat)
static int header_check_7z(const unsigned char *buffer, const unsigned int buffer_size, const unsigned int safe_header_only, const file_recovery_t *file_recovery, file_recovery_t *file_recovery_new)
{
- const struct header_7z *buffer_7z=(const struct header_7z *)buffer;
- if(memcmp(buffer,header_7z,sizeof(header_7z))==0)
+ if(memcmp(buffer, header_7z, sizeof(header_7z))==0)
{
+ const struct header_7z *buffer_7z=(const struct header_7z *)buffer;
reset_file_recovery(file_recovery_new);
file_recovery_new->extension=file_hint_7z.extension;
file_recovery_new->min_filesize=31;