From a37745be0353874990a953c956059b9d8953f7af Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Mon, 17 Jun 2019 23:47:32 -0400 Subject: Fix string return value when python BinaryView::get_load_settings_for_data is not defined. --- python/binaryview.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python/binaryview.py') diff --git a/python/binaryview.py b/python/binaryview.py index 01139176..5744cbf0 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -1054,7 +1054,7 @@ class BinaryView(object): return cls.get_load_settings_for_data(BinaryView(handle=core.BNNewViewReference(data))) except: log.log_error(traceback.format_exc()) - return None + return core.BNAllocString("") @classmethod def open(cls, src, file_metadata=None): @@ -4397,14 +4397,14 @@ class BinaryView(object): ``get_comment_at`` returns the address-based comment attached to the given address in this BinaryView Note that address-based comments are different from function-level comments which are specific to each function. For more information, see :func:`address_comments`. - + """ return core.BNGetGlobalCommentForAddress(self.handle, addr) def set_comment_at(self, addr, comment): """ ``set_comment_at`` sets a comment for the BinaryView at the address specified - + Note that these are different from function-level comments which are specific to each function. For more information, see :func:`address_comments`. -- cgit v1.3.1