Fix iS= assert warnings

This commit is contained in:
davidpolverari 2018-10-27 14:24:14 -03:00 committed by radare
parent 2044e2b925
commit 69286b61c6

View File

@ -487,10 +487,10 @@ static int cmd_info(void *data, const char *input) {
RBinObject *obj = r_bin_cur_object (core->bin);
if (mode == R_MODE_RADARE || mode == R_MODE_JSON || mode == R_MODE_SIMPLE) {
RBININFO (name, action, input + 2 + param_shift,
obj? r_list_length (obj->sections): 0);
(obj && obj->sections)? r_list_length (obj->sections): 0);
} else {
RBININFO (name, action, input + 1 + param_shift,
obj? r_list_length (obj->sections): 0);
(obj && obj->sections)? r_list_length (obj->sections): 0);
}
}
//we move input until get '\0'