Skip to content

Commit

Permalink
Fixed a bug in Line creation.
Browse files Browse the repository at this point in the history
Before the fix, comments would not be properly initialized if a `Line` object got initialized with a mid-item address.
This is now fixed.
  • Loading branch information
tmr232 committed Feb 12, 2017
1 parent b6d8326 commit 349bc48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sark/code/line.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def __init__(self, ea=UseCurrentAddress, name=None):
"use `Line(ea=Line.UseCurrentAddress)` or supply no `ea`.")

self._ea = idaapi.get_item_head(ea)
self._comments = Comments(ea)
self._comments = Comments(self._ea)

@property
def flags(self):
Expand Down

0 comments on commit 349bc48

Please sign in to comment.