mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-11 00:06:19 +00:00
Only blockread when needed in ph
This commit is contained in:
parent
637e6db3e1
commit
de2cc698ba
@ -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, ' ')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user