Skip to content

Commit

Permalink
Make sure the mach images list is initialized before use.
Browse files Browse the repository at this point in the history
  • Loading branch information
kstenerud committed Nov 9, 2023
1 parent 11cfa37 commit 2769b60
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Bugsnag/Helpers/BSGRunContext.m
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ static void InitRunContext(void) {
}

bsg_runContext->bootTime = GetBootTime();


// Make sure the images list is populated.
bsg_mach_headers_initialize();

BSG_Mach_Header_Info *image = bsg_mach_headers_get_main_image();
if (image && image->uuid) {
uuid_copy(bsg_runContext->machoUUID, image->uuid);
Expand Down

0 comments on commit 2769b60

Please sign in to comment.