summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-03-08 11:19:38 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-03-08 11:19:38 +0000
commit83f957ec18f48986bbac4f0b35e66bbc0e02ccdf (patch)
tree4b96270d122474f7bff9b1da0187adc7cd56048b /pp_sys.c
parent2440f57eb96c4329967f5d7bc390ffabf1449b9c (diff)
downloadperl-83f957ec18f48986bbac4f0b35e66bbc0e02ccdf.tar.gz
Need to extend the stack when using warn() without
an argument (this fixes bug #41716) p4raw-id: //depot/perl@30513
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pp_sys.c b/pp_sys.c
index c35fb5b2b2..29638d91b3 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -437,6 +437,7 @@ PP(pp_warn)
else if (SP == MARK) {
tmpsv = &PL_sv_no;
EXTEND(SP, 1);
+ SP = MARK + 1;
}
else {
tmpsv = TOPs;