diff options
author | Colin Harrison <colin.harrison@virgin.net> | 2012-07-22 13:15:02 +0100 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2012-08-03 22:58:09 +0100 |
commit | a8464dfa28dea78201e3e4398eb3bcb745e10087 (patch) | |
tree | 740a27b9acf5408109122ee0c352caa2de9b9bc9 /os/utils.c | |
parent | f6e7b82acadfca8239edc0f7e72cd0f3f9cfc2c4 (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/utils.c')
-rw-r--r-- | os/utils.c | 2 |
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"; } |