From: K.Kosako Date: Thu, 15 Jun 2017 04:23:27 +0000 (+0900) Subject: small code refactoring X-Git-Tag: v6.4.0~1^2~82 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f3926d3779c9a576a492fd6bacfc6c1fb3889f2d;p=onig small code refactoring --- diff --git a/src/regcomp.c b/src/regcomp.c index 68ecbbc..b53c32c 100644 --- a/src/regcomp.c +++ b/src/regcomp.c @@ -5427,11 +5427,9 @@ onig_compile(regex_t* reg, const UChar* pattern, const UChar* pattern_end, if (r < 0) goto err_unset; r = infinite_recursive_call_check_trav(root, &scan_env); if (r != 0) goto err_unset; - - reg->num_call = scan_env.num_call; } - else - reg->num_call = 0; + + reg->num_call = scan_env.num_call; #endif r = setup_tree(root, reg, 0, &scan_env);