From 7f08c50089df211ddda4197538a437081cb0922c Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 19 Apr 2011 11:48:35 +0000 Subject: [PATCH] Fix logical error --- src/Basics/Basics_DirUtils.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Basics/Basics_DirUtils.cxx b/src/Basics/Basics_DirUtils.cxx index e6e6deb29..182366345 100644 --- a/src/Basics/Basics_DirUtils.cxx +++ b/src/Basics/Basics_DirUtils.cxx @@ -52,9 +52,8 @@ namespace Kernel_Utils std::string GetTmpDirByEnv( const std::string& tmp_path_env ) { - std::string dir; char* val = getenv( tmp_path_env.c_str() ); - val ? dir = std::string( val ) : ""; + std::string dir = val ? val : ""; return GetTmpDirByPath( dir ); } -- 2.39.2