summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2003-02-06 01:08:19 +0000
committermtm <mtm@FreeBSD.org>2003-02-06 01:08:19 +0000
commit68ea6f266e092fcdefda36c4f8357168c28514d5 (patch)
tree53ba4eccae23b7ec9aae1e0bd830628f25e67d61 /lib/libc/stdio
parent00eaa83c32411b65cb95e6eaaeeb008e38eee64a (diff)
downloadFreeBSD-src-68ea6f266e092fcdefda36c4f8357168c28514d5.zip
FreeBSD-src-68ea6f266e092fcdefda36c4f8357168c28514d5.tar.gz
Fix use of an uninitialized pointer introduced in a previous revision.
Approved by: markm (mentor)(implicit)
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r--lib/libc/stdio/tmpfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/stdio/tmpfile.c b/lib/libc/stdio/tmpfile.c
index b38e0bc..22d0eb1 100644
--- a/lib/libc/stdio/tmpfile.c
+++ b/lib/libc/stdio/tmpfile.c
@@ -61,6 +61,7 @@ tmpfile()
char *buf;
const char *tmpdir;
+ tmpdir = NULL;
if (issetugid() == 0)
tmpdir = getenv("TMPDIR");
if (tmpdir == NULL)
OpenPOWER on IntegriCloud