Skip to content

Commit

Permalink
Fixed search_kw null handling
Browse files Browse the repository at this point in the history
  • Loading branch information
DMaroo committed Jan 24, 2022
1 parent 08dc5cd commit 7eb54e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librz/core/cmd/cmd_search.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ RZ_IPI RzCmdStatus rz_cmd_search_string_handler(RzCore *core, int argc, const ch
rz_search_kw_add(core->search, search_kw);
} else {
RZ_LOG_ERROR("Invalid search keyword\n");
return RZ_CMD_STATUS_ERROR;
goto beach;
}
rz_search_begin(core->search);
rz_config_set_i(core->config, "search.kwidx", core->search->n_kws);
Expand Down

0 comments on commit 7eb54e5

Please sign in to comment.