From 467183a1d579433c91b47afe410d3fb735775cce Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 19 Apr 2001 09:16:07 +0000 Subject: m68m frame_pointer patch git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- regex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'regex.c') diff --git a/regex.c b/regex.c index 9268b31f9b..d8cbfc0990 100644 --- a/regex.c +++ b/regex.c @@ -1439,8 +1439,7 @@ re_compile_pattern(pattern, size, bufp) } range_retry: if (range && had_char_class) { - FREE_AND_RETURN(stackb, "invalid regular expression; can't use character class as a end value of range"); - goto invalid_pattern; + FREE_AND_RETURN(stackb, "invalid regular expression; can't use character class as an end value of range"); } PATFETCH(c); @@ -1463,6 +1462,7 @@ re_compile_pattern(pattern, size, bufp) PATFETCH_MBC(c); had_mbchar++; } + had_char_class = 0; /* \ escapes characters when inside [...]. */ if (c == '\\') { -- cgit v1.2.3