summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2016-09-05 15:40:11 +1000
committerTony Cook <tony@develop-help.com>2016-10-24 11:11:39 +1100
commit92c843fb4b4e1a1e0ac7ec0fe198dc77266838da (patch)
tree61f261ece716628220c5dfe80e92712a1d96ecf6 /pp_sys.c
parentac15b3d6d72ab4715b650413eb5ab8ed5c6dc1a4 (diff)
downloadperl-92c843fb4b4e1a1e0ac7ec0fe198dc77266838da.tar.gz
(perl #129130) make chdir allocate the stack it needs
chdir with no argument didn't ensure there was stack space available for its result.
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 13f2913c44..10d6185426 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -3635,6 +3635,7 @@ PP(pp_chdir)
HV * const table = GvHVn(PL_envgv);
SV **svp;
+ EXTEND(SP, 1);
if ( (svp = hv_fetchs(table, "HOME", FALSE))
|| (svp = hv_fetchs(table, "LOGDIR", FALSE))
#ifdef VMS