From 0269f2f46d43e03a624d3830647fa5e2ee68b9b4 Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 25 Oct 2010 09:47:37 +0200 Subject: [PATCH] Changed: #825 Remove all warning when compiling Ryzom --- code/nel/src/misc/path.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/nel/src/misc/path.cpp b/code/nel/src/misc/path.cpp index 80911027b..8fc8435d7 100644 --- a/code/nel/src/misc/path.cpp +++ b/code/nel/src/misc/path.cpp @@ -1727,16 +1727,16 @@ std::string CFileContainer::getTemporaryDirectory() static std::string path; if (path.empty()) { - char *tempDir = getenv("TEMP"); + std::string tempDir = getenv("TEMP"); - if (tempDir == NULL) + if (tempDir.empty()) tempDir = getenv("TMP"); #ifdef NL_OS_UNIX - if (tempDir == NULL) + if (tempDir.empty()) tempDir = "/tmp"; #else - if (tempDir == NULL) + if (tempDir.empty()) tempDir = "."; #endif