summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorColin Harrison <colin.harrison@virgin.net>2012-07-22 13:15:02 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2012-08-03 22:58:09 +0100
commita8464dfa28dea78201e3e4398eb3bcb745e10087 (patch)
tree740a27b9acf5408109122ee0c352caa2de9b9bc9 /os
parentf6e7b82acadfca8239edc0f7e72cd0f3f9cfc2c4 (diff)
os: Fix TMP fall-back in Win32TempDir()
Fix Win32TempDir() in the case where we fell back to checking the TMP environment variable. It looks like this has been wrong since forever. Signed-off-by: Colin Harrison <colin.harrison@virgin.net> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Diffstat (limited to 'os')
-rw-r--r--os/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/utils.c b/os/utils.c
index d902523be..cdf5fd82e 100644
--- a/os/utils.c
+++ b/os/utils.c
@@ -1583,7 +1583,7 @@ Win32TempDir()
if (getenv("TEMP") != NULL)
return getenv("TEMP");
else if (getenv("TMP") != NULL)
- return getenv("TEMP");
+ return getenv("TMP");
else
return "/tmp";
}