summaryrefslogtreecommitdiff
path: root/regparse.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-28 00:50:17 (GMT)
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-28 00:50:17 (GMT)
commit62f8c207b223887dccb860e9cc8739d77b045724 (patch)
tree4658b9e157f64ace79be412434ef4406da3ed968 /regparse.c
parent15ae29a714316f8ea800bca3363f0cdd80a59ade (diff)
* regcomp.c (onig_compile): initialize ScanEnv.
mainly to initialize env->warnings_flag [ruby-dev:40196] * regparse.c (scan_env_clear): clear warnings_flag. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regparse.c')
-rw-r--r--regparse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/regparse.c b/regparse.c
index 9f46b15..67da551 100644
--- a/regparse.c
+++ b/regparse.c
@@ -956,6 +956,7 @@ scan_env_clear(ScanEnv* env)
env->curr_max_regnum = 0;
env->has_recursion = 0;
#endif
+ env->warnings_flag = 0;
}
static int