diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-06-02 06:54:05 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-06-02 06:54:05 +0000 |
commit | 7fc811cca11d30db90c233d254557669191be8d8 (patch) | |
tree | ca2c5a75f3c4721554a3d58f210952e1269a742c /perlio.c | |
parent | 538204d5c084ddeba9f54debc89d135829749520 (diff) | |
download | perl-7fc811cca11d30db90c233d254557669191be8d8.tar.gz |
A pointless test, noticed by Craig Berry.
p4raw-id: //depot/perl@19655
Diffstat (limited to 'perlio.c')
-rw-r--r-- | perlio.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -4817,7 +4817,6 @@ PerlIO_tmpfile(void) dTHX; PerlIO *f = NULL; int fd = -1; - SV *sv = Nullsv; GV *gv = gv_fetchpv("File::Temp::tempfile", FALSE, SVt_PVCV); if (!gv) { @@ -4848,12 +4847,8 @@ PerlIO_tmpfile(void) if (fd >= 0) { f = PerlIO_fdopen(fd, "w+"); - if (sv) { - if (f) - PerlIOBase(f)->flags |= PERLIO_F_TEMP; - PerlLIO_unlink(SvPVX(sv)); - SvREFCNT_dec(sv); - } + if (f) + PerlIOBase(f)->flags |= PERLIO_F_TEMP; } return f; |