summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorBram <perl-rt@wizbit.be>2008-06-10 20:26:26 -0700
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-06-17 11:13:38 +0000
commit8433848b134d4e61d5135fd8a70d8106025ac6a6 (patch)
tree1f4ece2adf27300a2e20f1fc53672a98e7ce1eaf /op.c
parent8dc00b2f10de49b4d2d4be48279a996698c3f04a (diff)
downloadperl-8433848b134d4e61d5135fd8a70d8106025ac6a6.tar.gz
[perl #51370] length($@)>0 for empty $@ if utf8 is in use
From: "Bram via RT" <perlbug-followup@perl.org> Message-ID: <rt-3.6.HEAD-18229-1213179984-1708.51370-15-0@perl.org> (The first patch) p4raw-id: //depot/perl@34068
Diffstat (limited to 'op.c')
-rw-r--r--op.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/op.c b/op.c
index c314cafb16..d18e6da2c7 100644
--- a/op.c
+++ b/op.c
@@ -2521,7 +2521,7 @@ Perl_fold_constants(pTHX_ register OP *o)
case 3:
/* Something tried to die. Abandon constant folding. */
/* Pretend the error never happened. */
- sv_setpvn(ERRSV,"",0);
+ clear_errsv();
o->op_next = old_next;
break;
default: