summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorHugo van der Sanden <hv@crypt.org>1997-11-22 12:52:16 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-03-03 03:03:55 +0000
commit4b74e3fbc56175eeb65af1e5ad28a26e76ba64d9 (patch)
tree22e05587bd64780c7cb3ed045956ec4ca0ea2639 /doio.c
parenta2c066523a8ce75a281ac073b929d59e1a2fbb5f (diff)
downloadperl-4b74e3fbc56175eeb65af1e5ad28a26e76ba64d9.tar.gz
[win32] yet another maintpatch
Message-Id: <199711221252.MAA14000@crypt.compulink.co.uk> Subject: Re: [PERL] Unexpected output p4raw-id: //depot/win32/perl@630
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/doio.c b/doio.c
index cc038e26cc..af65e6eb79 100644
--- a/doio.c
+++ b/doio.c
@@ -839,6 +839,7 @@ my_stat(ARGSproto)
}
else {
SV* sv = POPs;
+ char *s;
PUTBACK;
if (SvTYPE(sv) == SVt_PVGV) {
tmpgv = (GV*)sv;
@@ -849,11 +850,12 @@ my_stat(ARGSproto)
goto do_fstat;
}
+ s = SvPV(sv, na);
statgv = Nullgv;
- sv_setpv(statname,SvPV(sv, na));
+ sv_setpv(statname, s);
laststype = OP_STAT;
- laststatval = PerlLIO_stat(SvPV(sv, na),&statcache);
- if (laststatval < 0 && dowarn && strchr(SvPV(sv, na), '\n'))
+ laststatval = PerlLIO_stat(s, &statcache);
+ if (laststatval < 0 && dowarn && strchr(s, '\n'))
warn(warn_nl, "stat");
return laststatval;
}