Skip to content

Commit

Permalink
[UnboundLocalError@globals.py:264] UnboundLocalError: local variable …
Browse files Browse the repository at this point in the history
…'init_value' referenced before assignment (#449)

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: rihi <19492038+rihi@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and rihi authored Dec 12, 2024
1 parent 8637644 commit 87a29c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decompiler/frontend/binaryninja/handlers/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def _lift_pointer_type(
if not addr_in_section(self._view, variable.value):
init_value = Constant(variable.value, vartype=Integer(self._view.address_size * BYTE_SIZE, False))
else:
self._lifter.lift(self._view.get_data_var_at(variable.value), view=self._view, callers=callers)
init_value = self._lifter.lift(self._view.get_data_var_at(variable.value), view=self._view, callers=callers)

return self._build_global_variable(
name=self._lifter.lift(variable.symbol).name if variable.symbol else None,
Expand Down

0 comments on commit 87a29c9

Please sign in to comment.