Skip to content

Commit

Permalink
macho: set first and last atom indexes to 0 when marking section for …
Browse files Browse the repository at this point in the history
…pruning
  • Loading branch information
kubkon committed Aug 2, 2023
1 parent 2b40a7b commit cfb8815
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MachO/dead_strip.zig
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,8 @@ fn prune(macho_file: *MachO, alive: AtomTable) void {
section.last_atom_index = prev_index;
} else {
assert(section.header.size == 0);
section.first_atom_index = undefined;
section.last_atom_index = undefined;
section.first_atom_index = 0;
section.last_atom_index = 0;
}
}

Expand Down

0 comments on commit cfb8815

Please sign in to comment.