From 48a872e2853852e66651f25afb648c4ed4fda71d Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Sun, 12 Apr 2020 22:20:44 +0900 Subject: [PATCH] Address cppcheck 1.90 warning --- src/fdcache.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/fdcache.cpp b/src/fdcache.cpp index eb5598e..0ccdb82 100644 --- a/src/fdcache.cpp +++ b/src/fdcache.cpp @@ -207,9 +207,7 @@ bool CacheFileStat::SetPath(const char* tpath, bool is_open) // could not close old stat file. return false; } - if(tpath){ - path = tpath; - } + path = tpath; if(!is_open){ return true; }