clang-tidy string init

This commit is contained in:
Erik Frojdh 2020-06-10 08:39:24 +02:00
parent 9c26cd5552
commit 7388bb4aa7

View File

@ -218,7 +218,7 @@ template <typename T> class SharedMemory {
std::string ConstructSharedMemoryName(int multiId, int slsId) {
// using environment path
std::string sEnvPath = "";
std::string sEnvPath;
char *envpath = getenv(SHM_ENV_NAME);
if (envpath != nullptr) {
sEnvPath.assign(envpath);