summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorHugo van der Sanden <hv@crypt.org>1999-03-28 05:51:34 +0100
committerGurusamy Sarathy <gsar@cpan.org>1999-05-06 03:19:16 +0000
commitac2262e32f030fd3261b89c253e5e7274a51cc53 (patch)
tree4e16886e561b6e8746f0373571e58c9eb5d01b36 /toke.c
parent82092f1dcd6e496644fe74540fa706cb390be431 (diff)
downloadperl-ac2262e32f030fd3261b89c253e5e7274a51cc53.tar.gz
applied first part of suggested patch (bug described cannot be
reproduced any longer, so the second inconclusive part has not been applied) Message-Id: <199903280351.EAA20430@crypt.compulink.co.uk> Subject: [PATCH 5.005_56] Re: A core dump p4raw-id: //depot/perl@3308
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toke.c b/toke.c
index 4803bc8425..b4a3d1dd43 100644
--- a/toke.c
+++ b/toke.c
@@ -928,10 +928,10 @@ scan_const(char *start)
register char *d = SvPVX(sv); /* destination for copies */
bool dorange = FALSE; /* are we in a translit range? */
I32 len; /* ? */
- I32 utf = PL_lex_inwhat == OP_TRANS
+ I32 utf = (PL_lex_inwhat == OP_TRANS && PL_sublex_info.sub_op)
? (PL_sublex_info.sub_op->op_private & (OPpTRANS_FROM_UTF|OPpTRANS_TO_UTF))
: UTF;
- I32 thisutf = PL_lex_inwhat == OP_TRANS
+ I32 thisutf = (PL_lex_inwhat == OP_TRANS && PL_sublex_info.sub_op)
? (PL_sublex_info.sub_op->op_private & (PL_lex_repl ? OPpTRANS_FROM_UTF : OPpTRANS_TO_UTF))
: UTF;