Skip to content

Commit

Permalink
Previously sent NULL pointer if only a 32 mach_o was found inside a f…
Browse files Browse the repository at this point in the history
…at arch
  • Loading branch information
davhojt committed Dec 27, 2018
1 parent 883854d commit c1683b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shared/srcs/mach_o_fat_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 53,7 @@ static bool mach_fat_32_handle_format(t_nm_otool *nm_otool,
type_64, mach_o_obj_handler_64));
if (type_32)
return (mach_fat_32_launch_mach_o(nm_otool, file_data,
type_64, mach_o_obj_handler_32));
type_32, mach_o_obj_handler_32));
return (false);
}

Expand Down
2 changes: 1 addition & 1 deletion shared/srcs/mach_o_fat_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 51,7 @@ static bool mach_fat_64_handle_format(t_nm_otool *nm_otool,
type_64, mach_o_obj_handler_64));
if (type_32)
return (mach_fat_64_launch_mach_o(nm_otool, file_data,
type_64, mach_o_obj_handler_32));
type_32, mach_o_obj_handler_32));
return (false);
}

Expand Down

0 comments on commit c1683b5

Please sign in to comment.