From ffc3b37f969a779f93b8f8a5b3591b4ef7de1538 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Thu, 24 Mar 2022 16:59:11 +0900 Subject: re.c: Add Regexp.timeout= and Regexp.timeout [Feature #17837] --- regexec.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'regexec.c') diff --git a/regexec.c b/regexec.c index da17c04a55..c77d48b1d9 100644 --- a/regexec.c +++ b/regexec.c @@ -422,6 +422,7 @@ onig_region_copy(OnigRegion* to, const OnigRegion* from) (msa).gpos = (arg_gpos);\ (msa).best_len = ONIG_MISMATCH;\ (msa).counter = 0;\ + (msa).end_time = 0;\ } while(0) #else # define MATCH_ARG_INIT(msa, arg_option, arg_region, arg_start, arg_gpos) do {\ @@ -431,6 +432,7 @@ onig_region_copy(OnigRegion* to, const OnigRegion* from) (msa).start = (arg_start);\ (msa).gpos = (arg_gpos);\ (msa).counter = 0;\ + (msa).end_time = 0;\ } while(0) #endif -- cgit v1.2.3