mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-30 01:44:50 +00:00
Avoid possible null deref
This commit is contained in:
parent
7463546f13
commit
778c7722f6
@ -1231,7 +1231,7 @@ static void ds_show_xrefs(RDisasmState *ds) {
|
||||
COLOR (ds, pal_comment), r_anal_xrefs_type_tostring (refi->type), plural, name);
|
||||
ut64 *addrptr;
|
||||
r_list_foreach (addrs, it, addrptr) {
|
||||
if (*addrptr) {
|
||||
if (addrptr && *addrptr) {
|
||||
ds_comment (ds, false, "%s%s0x%"PFMT64x, it == addrs->head ? "" : ", ", plus, *addrptr);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user