From 53cae699c9127369e0bbe872aec9f80b4a811dca Mon Sep 17 00:00:00 2001 From: Adeel Kazmi Date: Thu, 5 Sep 2019 17:12:34 +0100 Subject: [PATCH] Fix systemCachePath check The check before was pointless as it cannot ever be NULL. We can just use the std::string::empty() method to do this. Change-Id: I0da3a544b2b18e2820f452a502b2542f4440282f --- dali/internal/adaptor/common/adaptor-impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dali/internal/adaptor/common/adaptor-impl.cpp b/dali/internal/adaptor/common/adaptor-impl.cpp index 69d0da6..3416ed8 100755 --- a/dali/internal/adaptor/common/adaptor-impl.cpp +++ b/dali/internal/adaptor/common/adaptor-impl.cpp @@ -289,7 +289,7 @@ void Adaptor::Initialize( GraphicsFactory& graphicsFactory, Dali::Configuration: } std::string systemCachePath = GetSystemCachePath(); - if ( systemCachePath.c_str() != NULL ) + if ( ! systemCachePath.empty() ) { Dali::FileStream fileStream( systemCachePath + "gpu-environment.conf", Dali::FileStream::READ | Dali::FileStream::TEXT ); std::fstream& stream = dynamic_cast( fileStream.GetStream() ); -- 2.7.4