summaryrefslogtreecommitdiff
path: root/perl.h
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 /perl.h
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 'perl.h')
-rw-r--r--perl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 8e48b6d43a..aa3df96fd7 100644
--- a/perl.h
+++ b/perl.h
@@ -6008,6 +6008,8 @@ extern void moncontrol(int);
#endif /* Include guard */
+#define clear_errsv() STMT_START { sv_setpvn(ERRSV,"",0); if (SvMAGICAL(ERRSV)) { mg_free(ERRSV); } SvPOK_only(ERRSV); } STMT_END
+
/*
* Local variables:
* c-indentation-style: bsd