summaryrefslogtreecommitdiffstats
path: root/src/file_ico.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2016-06-24 21:48:57 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2016-06-24 21:48:57 +0200
commitf377e15277b2e3dd53730a07e944acdd2ff974e9 (patch)
tree732a30c22b580d90a4c87503c1e4fa063e243de5 /src/file_ico.c
parent7a7d19134895fcfbdb202a408efb026a58a12585 (diff)
Remove useless ico_dir variable initialisation in header_check_ico()
Diffstat (limited to 'src/file_ico.c')
-rw-r--r--src/file_ico.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_ico.c b/src/file_ico.c
index 7a4979c..03bebb3 100644
--- a/src/file_ico.c
+++ b/src/file_ico.c
@@ -94,7 +94,7 @@ struct ico_directory
static int header_check_ico(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 ico_header *ico=(const struct ico_header*)buffer;
- const struct ico_directory *ico_dir=(const struct ico_directory*)(ico+1);
+ const struct ico_directory *ico_dir;
unsigned int i;
uint64_t fs=0;
#ifdef DEBUG_ICO