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:
parent
f6e7b82aca
commit
a8464dfa28
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user