From e5b9245bfa1b102f2c321698e357e7ff515fd637 Mon Sep 17 00:00:00 2001 From: Mike Makonnen Date: Thu, 6 Feb 2003 01:08:19 +0000 Subject: [PATCH] Fix use of an uninitialized pointer introduced in a previous revision. Approved by: markm (mentor)(implicit) --- lib/libc/stdio/tmpfile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libc/stdio/tmpfile.c b/lib/libc/stdio/tmpfile.c index b38e0bca83b..22d0eb1c5f0 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)