Avoid possible null deref

This commit is contained in:
pancake 2018-07-16 17:56:24 +02:00
parent 7463546f13
commit 778c7722f6

View File

@ -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);
}
}