aboutsummaryrefslogtreecommitdiff
path: root/xexamine.c
diff options
context:
space:
mode:
Diffstat (limited to 'xexamine.c')
-rw-r--r--xexamine.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xexamine.c b/xexamine.c
index 3c277e5..ec1e822 100644
--- a/xexamine.c
+++ b/xexamine.c
@@ -358,6 +358,11 @@ int main(int argc, char **argv) {
while(xex_fread_seg(&seg, f)) {
segcount++;
+ xex_check_seg(&seg);
+ if(xex_errno) {
+ xex_perror(filename);
+ }
+
crc = 0;
crc32(seg.object, seg.len, &crc);