summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-01-05 16:39:50 +0000
committerNicholas Clark <nick@ccl4.org>2011-01-05 20:42:23 +0000
commitb220e8cd5bb9b66ed60b059f802b49aabb4b520e (patch)
tree1527557f945568ef590969311c7d946697c1bb0c /util.c
parentf64eb7e3f1535117ee91c13174660a9b6eef681b (diff)
downloadperl-b220e8cd5bb9b66ed60b059f802b49aabb4b520e.tar.gz
Calling "PRINT" on a tied STDERR can use G_DISCARD, as the result is ignored.
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index ac7dd57f66..915a6107a9 100644
--- a/util.c
+++ b/util.c
@@ -1427,7 +1427,7 @@ Perl_write_to_stderr(pTHX_ SV* msv)
PUSHs(SvTIED_obj(MUTABLE_SV(io), mg));
PUSHs(msv);
PUTBACK;
- call_method("PRINT", G_SCALAR);
+ call_method("PRINT", G_SCALAR | G_DISCARD);
POPSTACK;
FREETMPS;