Only blockread when needed in ph

This commit is contained in:
pancake 2016-11-07 03:36:49 +01:00
parent 637e6db3e1
commit de2cc698ba

View File

@ -1743,11 +1743,11 @@ static bool cmd_print_ph(RCore *core, const char *input) {
r_core_block_size (core, osize);
return false;
}
r_core_block_read (core);
}
} else if (!ptr || !*(ptr+1)) {
} else if (!ptr || !*(ptr + 1)) {
osize = len;
}
r_core_block_read (core);
/* TODO: Simplify this spaguetti monster */
while (osize > 0 && hash_handlers[pos].name) {
if (!r_str_ccmp (input, hash_handlers[pos].name, ' ')) {