This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acb909b
)
fix 'might be used uninitialized' in PerlIO_tmpfile
author
David Mitchell
<davem@iabyn.com>
Wed, 18 Aug 2010 21:31:49 +0000
(22:31 +0100)
committer
David Mitchell
<davem@iabyn.com>
Wed, 18 Aug 2010 21:34:30 +0000
(22:34 +0100)
sv can't actually be used uninitialized, but set it to zero to
shut up stupid compilers
perlio.c
patch
|
blob
|
blame
|
history
diff --git
a/perlio.c
b/perlio.c
index
57a61d9
..
ab08bec
100644
(file)
--- a/
perlio.c
+++ b/
perlio.c
@@
-5156,7
+5156,7
@@
PerlIO_tmpfile(void)
int fd = -1;
char tempname[] = "/tmp/PerlIO_XXXXXX";
const char * const tmpdir = PL_tainting ? NULL : PerlEnv_getenv("TMPDIR");
- SV * sv;
+ SV * sv
= NULL
;
/*
* I have no idea how portable mkstemp() is ... NI-S
*/