Skip to content

Commit

Permalink
Check cond APIs nullability for radareorg#23490
Browse files Browse the repository at this point in the history
  • Loading branch information
astralia committed Nov 28, 2024
1 parent f4be8ef commit 86c43e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libr/anal/cond.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ R_API const char *r_anal_cond_typeexpr_tostring(int cc) {
}

R_API RAnalCondType r_anal_cond_type_fromstring(const char *type) {
R_RETURN_VAL_IF_FAIL (type, R_ANAL_CONDTYPE_ERR);
int i;
for (i = 0; i < R_ANAL_CONDTYPE_LAST; i++) {
if (!strcmp (type, condtypestr[i])) {
Expand Down

0 comments on commit 86c43e8

Please sign in to comment.