diff options
Diffstat (limited to 'src/common/mac/macho_walker.cc')
-rw-r--r-- | src/common/mac/macho_walker.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/common/mac/macho_walker.cc b/src/common/mac/macho_walker.cc index 96dca406..5e9de5f4 100644 --- a/src/common/mac/macho_walker.cc +++ b/src/common/mac/macho_walker.cc @@ -103,7 +103,7 @@ bool MachoWalker::FindHeader(int cpu_type, off_t &offset) { offset = sizeof(magic); // Figure out what type of file we've got - bool is_fat; + bool is_fat = false; if (magic == FAT_MAGIC || magic == FAT_CIGAM) { is_fat = true; } @@ -119,9 +119,6 @@ bool MachoWalker::FindHeader(int cpu_type, off_t &offset) { if (!ReadBytes(&header_cpu_type, sizeof(header_cpu_type), offset)) return false; - if (NXHostByteOrder() != NX_BigEndian) - header_cpu_type = NXSwapLong(header_cpu_type); - if (valid_cpu_type != header_cpu_type) return false; |