Skip to content

Commit

Permalink
fix test broken in 1fa4a13
Browse files Browse the repository at this point in the history
  • Loading branch information
crowell committed Apr 30, 2015
1 parent 1fa4a13 commit 40d6df7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions libr/core/cmd_search.c
Original file line number Diff line number Diff line change
Expand Up @@ -791,9 +791,14 @@ static int r_core_search_rop(RCore *core, ut64 from, ut64 to, int opt, const cha

//Options, like JSON, linear, ...
grep_arg = strchr (grep, ' ');
if (*grep && grep_arg) {
mode = *(grep_arg - 1);
if (*grep) {
if (grep_arg) {
mode = *(grep_arg - 1);
grep = grep_arg;
} else {
mode = *grep;
++grep;
}
}

if (*grep==' ') // grep mode
Expand Down

0 comments on commit 40d6df7

Please sign in to comment.