Fix: wrong exit condition in rz_analysis_optype_from_string (#3821)

This commit is contained in:
Peiwei Hu 2023-09-03 00:52:12 +08:00 committed by GitHub
parent c9b16eaab9
commit abec6b127d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}