Replies: 1 comment 3 replies
-
There is an option to use NULL instead. It's somewhere in the decompiler settings. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A lot of times, a check for whether a struct exists/isn't empty will be with a
cmp
or equivalent instruction, against 0.This will be, intuitively translated as "if struct == 0", or "if struct == null". However, ghidra will still show the cast, making it busily show up as "if struct == (Struct* ) 0x0". Is there a way to get rid of these casts, so the code looks cleaner?
Beta Was this translation helpful? Give feedback.
All reactions