projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
538204d
)
A pointless test, noticed by Craig Berry.
author
Jarkko Hietaniemi
<jhi@iki.fi>
Mon, 2 Jun 2003 06:54:05 +0000
(06:54 +0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Mon, 2 Jun 2003 06:54:05 +0000
(06:54 +0000)
p4raw-id: //depot/perl@19655
perlio.c
patch
|
blob
|
history
diff --git
a/perlio.c
b/perlio.c
index
05b53c9
..
ac9887d
100644
(file)
--- a/
perlio.c
+++ b/
perlio.c
@@
-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;