mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-20 06:06:13 +00:00
Changed: #825 Remove all warning when compiling Ryzom
This commit is contained in:
parent
4a457110e2
commit
9ca427ea95
1 changed files with 4 additions and 4 deletions
|
@ -1727,16 +1727,16 @@ std::string CFileContainer::getTemporaryDirectory()
|
||||||
static std::string path;
|
static std::string path;
|
||||||
if (path.empty())
|
if (path.empty())
|
||||||
{
|
{
|
||||||
char *tempDir = getenv("TEMP");
|
std::string tempDir = getenv("TEMP");
|
||||||
|
|
||||||
if (tempDir == NULL)
|
if (tempDir.empty())
|
||||||
tempDir = getenv("TMP");
|
tempDir = getenv("TMP");
|
||||||
|
|
||||||
#ifdef NL_OS_UNIX
|
#ifdef NL_OS_UNIX
|
||||||
if (tempDir == NULL)
|
if (tempDir.empty())
|
||||||
tempDir = "/tmp";
|
tempDir = "/tmp";
|
||||||
#else
|
#else
|
||||||
if (tempDir == NULL)
|
if (tempDir.empty())
|
||||||
tempDir = ".";
|
tempDir = ".";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue