diff options
author | David Mitchell <davem@iabyn.com> | 2010-08-18 22:31:49 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2010-08-18 22:34:30 +0100 |
commit | 525f6fe9b8e5ad339fbb59d26d0c0c1b1c0a6c4c (patch) | |
tree | aef319b39cdced353f8c240c2b75b90c314ce887 /perlio.c | |
parent | acb909b418c9f421785d1bddf729512e3597be18 (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |