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>
This commit is contained in:
Colin Harrison 2012-07-22 13:15:02 +01:00 committed by Jon TURNEY
parent f6e7b82aca
commit a8464dfa28

View File

@ -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";
}