Skip to content

Commit

Permalink
#207: Unchecked return value
Browse files Browse the repository at this point in the history
  • Loading branch information
kkos committed Sep 21, 2020
1 parent c0d1dbb commit 98674c8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/regparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -8552,7 +8552,12 @@ prs_exp(Node** np, PToken* tok, int term, UChar** src, UChar* end,
*np = node_new_cclass();
CHECK_NULL_RETURN_MEMERR(*np);
cc = CCLASS_(*np);
add_ctype_to_cc(cc, tok->u.prop.ctype, FALSE, env);
r = add_ctype_to_cc(cc, tok->u.prop.ctype, FALSE, env);
if (r != 0) {
onig_node_free(*np);
*np = NULL_NODE;
return r;
}
if (tok->u.prop.not != 0) NCCLASS_SET_NOT(cc);
}
break;
Expand Down

0 comments on commit 98674c8

Please sign in to comment.