Skip to content

Commit bf67832

Browse files
committed
Change condition for suffix to i == 0
1 parent 8ea5ca8 commit bf67832

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

search_offsets/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def process_offsets(
5656
continue
5757

5858
for i, offset in enumerate(found[pattern_name]):
59-
suffix = "" if i <= 0 else f"_{i}"
59+
suffix = "" if i == 0 else f"_{i}"
6060
name = pattern_name + suffix
6161
rva = pe.offset_to_virtual_address(offset)
6262
if isinstance(rva, lief.lief_errors):

0 commit comments

Comments
 (0)