Skip to content

Commit

Permalink
Fix: wrong exit condition in rz_analysis_optype_from_string (#3821)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeiweiHu authored Sep 2, 2023
1 parent c9b16ea commit abec6b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librz/analysis/op.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ static struct optype {
RZ_API int rz_analysis_optype_from_string(RZ_NONNULL const char *name) {
rz_return_val_if_fail(name, -1);
int i;
for (i = 0; RZ_ARRAY_SIZE(optypes); i++) {
for (i = 0; i < RZ_ARRAY_SIZE(optypes); i++) {
if (!strcmp(optypes[i].name, name)) {
return optypes[i].type;
}
Expand Down

0 comments on commit abec6b1

Please sign in to comment.