mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 18:54:38 +00:00
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:
committed by
Jon TURNEY
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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user