diff options
author | Karl Williamson <khw@cpan.org> | 2022-03-29 04:36:15 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-04-01 09:19:55 -0600 |
commit | a158cd66c53b18813b4afae9fc71e3cb355ed7a6 (patch) | |
tree | ac136f995f96154a5401503331a24d2e824f717f /toke.c | |
parent | 433cf356e25977406a5aab3a0e7c00ccacd18c93 (diff) | |
download | perl-a158cd66c53b18813b4afae9fc71e3cb355ed7a6.tar.gz |
toke.c: Move variable set to after possible exit
It's just a little bit better to do the warning (which could be made
fatal) before setting something that's only needed later.
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -11438,7 +11438,6 @@ Perl_scan_str(pTHX_ char *start, int keep_bracketed_quoted, int keep_delims, int bytes. */ close_delim_str = legal_paired_closing_delims + (tmps - legal_paired_opening_delims); - close_delim_code = valid_utf8_to_uvchr((U8 *) close_delim_str, NULL); /* The list of paired delimiters contains all the ASCII ones that have * always been legal, and no other ASCIIs. Don't raise a message if @@ -11449,6 +11448,8 @@ Perl_scan_str(pTHX_ char *start, int keep_bracketed_quoted, int keep_delims, int "Use of '%" UTF8f "' is experimental as a string delimiter", UTF8fARG(UTF, delim_byte_len, open_delim_str)); } + + close_delim_code = valid_utf8_to_uvchr((U8 *) close_delim_str, NULL); } else { /* Here, the delimiter isn't paired, hence the close is the same as the open; and has aready been set up. But make sure it isn't |