Fix crash when executing om (#13362)

This commit is contained in:
Riccardo Schirone 2019-03-12 20:10:45 +01:00 committed by radare
parent 917fcda0ad
commit 616c6b263b

View File

@ -799,7 +799,7 @@ static void cmd_open_map(RCore *core, const char *input) {
core->print->cb_printf ("%i\n", map->id);
}
} else {
if (input[2] == 'q') { // "omqq"
if (input[1] && input[2] == 'q') { // "omqq"
map_list (core->io, input[1], core->print, -2);
} else {
map_list (core->io, input[1], core->print, -1);