summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2010-08-18 22:31:49 +0100
committerDavid Mitchell <davem@iabyn.com>2010-08-18 22:34:30 +0100
commit525f6fe9b8e5ad339fbb59d26d0c0c1b1c0a6c4c (patch)
treeaef319b39cdced353f8c240c2b75b90c314ce887 /perlio.c
parentacb909b418c9f421785d1bddf729512e3597be18 (diff)
downloadperl-525f6fe9b8e5ad339fbb59d26d0c0c1b1c0a6c4c.tar.gz
fix 'might be used uninitialized' in PerlIO_tmpfile
sv can't actually be used uninitialized, but set it to zero to shut up stupid compilers
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perlio.c b/perlio.c
index 57a61d92f4..ab08bec080 100644
--- 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
*/