diff --git a/libr/anal/xrefs.c b/libr/anal/xrefs.c index 7aa905845c..a43dbdd7fe 100644 --- a/libr/anal/xrefs.c +++ b/libr/anal/xrefs.c @@ -228,7 +228,10 @@ R_API void r_anal_xrefs_list(RAnal *anal, int rad) { pj_a (pj); } r_list_foreach (list, iter, ref) { - int t = ref->type ? R_ANAL_REF_TYPE_MASK (ref->type): ' '; + int t = R_ANAL_REF_TYPE_MASK (ref->type); + if (!t) { + t = ' '; + } switch (rad) { case '*': // TODO: export/import the read-write-exec information