import-to-ida: fix append comment

ref #1204
This commit is contained in:
Willi Ballenthin
2022-12-05 16:02:40 +01:00
committed by GitHub
parent 5196caabb5
commit 12c9c466c7

View File

@@ -51,7 +51,11 @@ def append_func_cmt(va, cmt, repeatable=False):
if cmt in existing:
return
new = existing + "\n" + cmt
if len(existing) > 0:
new = existing + "\n" + cmt
else:
new = cmt
ida_funcs.set_func_cmt(func, new, repeatable)