Revert "Handle read(n) returning nil"

This reverts commit 578cb637594d32b86322be29205329d700ad75ca.
This commit is contained in:
Jack Nagel 2014-10-11 01:45:36 -05:00
parent 3d96dad25c
commit 977a2ceae3

View File

@ -60,7 +60,7 @@ module MachO
offsets = [] offsets = []
mach_data = [] mach_data = []
header = (read(8) || "").unpack("N2") header = read(8).unpack("N2")
case header[0] case header[0]
when 0xcafebabe # universal when 0xcafebabe # universal
header[1].times do |i| header[1].times do |i|