Fix null dereference

This commit is contained in:
Álvaro Felipe Melchor 2016-03-12 13:03:12 +01:00
parent 0104b0b324
commit 1f2139fd54

View File

@ -516,7 +516,7 @@ static int bin_info(RCore *r, int mode) {
}
// checksums are only supported for pe atm
if (strncmp ("pe", info->rclass, 2) == 0) {
if (info->rclass && strncmp ("pe", info->rclass, 2) == 0) {
pair_str ("crc32", info->claimed_checksum, mode, false);
pair_str ("crc32c", info->actual_checksum, mode, false);
}