mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-05 13:30:27 +01: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:
parent
f6e7b82aca
commit
a8464dfa28
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue