summaryrefslogtreecommitdiffstats
path: root/src/file_exe.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-12-08 17:58:27 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2012-12-08 17:58:27 +0100
commit190b91b85e64505fecda5bbc920c9f95fe02d964 (patch)
tree9e26392de7b948956d50d67a37ae2c96464d23cc /src/file_exe.c
parent80385c0ed135bc24b9241e31b432afee63bc4e09 (diff)
various code cleanup
Diffstat (limited to 'src/file_exe.c')
-rw-r--r--src/file_exe.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/file_exe.c b/src/file_exe.c
index 9cd46fa..7aabe75 100644
--- a/src/file_exe.c
+++ b/src/file_exe.c
@@ -171,8 +171,7 @@ static int header_check_exe(const unsigned char *buffer, const unsigned int buff
)
{
/* MSDOS EXE */
- uint64_t coff_offset=0;
- coff_offset=le16(dos_hdr->blocks_in_file)*512;
+ uint64_t coff_offset=le16(dos_hdr->blocks_in_file)*512;
if(le16(dos_hdr->bytes_in_last_block))
coff_offset-=512-le16(dos_hdr->bytes_in_last_block);