summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-03-26 14:36:17 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-03-26 14:36:17 +0000
commit366e98c304f5509b9df74e815b2f963e08a26c78 (patch)
tree3ebcfe0e94f66832e68ebb805aff278df02a2022 /pp.c
parent3ca3bb6f35492332d8741078a5631986b1e06b9d (diff)
downloadperl-366e98c304f5509b9df74e815b2f963e08a26c78.tar.gz
Nit to change 30762 by Gisle.
Avoids storing the chars removed by 4-arg substr() in void context. p4raw-id: //depot/perl@30763
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp.c b/pp.c
index 34ae75f8c7..b5c696c7e5 100644
--- a/pp.c
+++ b/pp.c
@@ -3115,7 +3115,7 @@ PP(pp_substr)
}
}
- if (! lvalue)
+ if (GIMME_V != G_VOID && !lvalue)
sv_setpvn(TARG, tmps, rem);
#ifdef USE_LOCALE_COLLATE
sv_unmagic(TARG, PERL_MAGIC_collxfrm);