Skip to content

Commit

Permalink
Use RZ_STR_DUP macro instead of rz_str_newf
Browse files Browse the repository at this point in the history
  • Loading branch information
DMaroo committed Jan 15, 2022
1 parent a663be1 commit fdf7318
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 @@ -354,7 +354,7 @@ RZ_IPI RzCmdStatus rz_cmd_search_string_handler(RzCore *core, int argc, const ch
return RZ_CMD_STATUS_ERROR;
}

char *search_term = rz_str_new(argv[1]);
char *search_term = RZ_STR_DUP(argv[1]);
int len = rz_str_unescape(search_term);

struct search_parameters param;
Expand Down

0 comments on commit fdf7318

Please sign in to comment.