Core dump from "Missing right brace on \x{}"
authorGisle Aas <gisle@aas.no>
Wed, 14 Oct 1998 15:17:44 +0000 (17:17 +0200)
committerGurusamy Sarathy <gsar@cpan.org>
Sat, 17 Oct 1998 04:06:10 +0000 (04:06 +0000)
Message-ID: <m3iuhn9taf.fsf@furu.g.aas.no>

p4raw-id: //depot/perl@2001

toke.c

diff --git a/toke.c b/toke.c
index 88933de..8664b8f 100644 (file)
--- a/toke.c
+++ b/toke.c
@@ -1076,8 +1076,10 @@ scan_const(char *start)
                if (*s == '{') {
                    char* e = strchr(s, '}');
 
-                   if (!e)
+                   if (!e) {
                        yyerror("Missing right brace on \\x{}");
+                       e = s;
+                   }
                    if (!utf) {
                        dTHR;
                        if (ckWARN(WARN_UTF8))