summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--regcomp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index 74f996bcd6..1b22d90594 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -7466,14 +7466,19 @@ tryagain:
case 'o':
{
STRLEN brace_len = len;
+ UV result;
if ((error_msg = grok_bslash_o(p,
- &ender,
+ &result,
&brace_len,
SIZE_ONLY))
!= NULL)
{
vFAIL(error_msg);
}
+ else
+ {
+ ender = result;
+ }
p += brace_len;
if (PL_encoding && ender < 0x100) {
goto recode_encoding;