summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-11-15 10:15:22 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-11-15 10:15:22 +0000
commit59b714e260d430f6d20c1573b9cd0f5fe0955ad8 (patch)
tree68c0ba60c8d7e17df6ba5568c70c035d8dfafa47 /dump.c
parent89d1f0ef1b6c19fa0e51e21c93cfffe86aeb375c (diff)
downloadperl-59b714e260d430f6d20c1573b9cd0f5fe0955ad8.tar.gz
Add a dump to help tracing taint bugs, by Chip Salzenberg
p4raw-id: //depot/perl@34837
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dump.c b/dump.c
index fdb8dde3a5..724baf8bd3 100644
--- a/dump.c
+++ b/dump.c
@@ -532,6 +532,8 @@ Perl_sv_peek(pTHX_ SV *sv)
finish:
while (unref--)
sv_catpv(t, ")");
+ if (PL_tainting && SvTAINTED(sv))
+ sv_catpv(t, " [tainted]");
return SvPV_nolen(t);
}