diff --git a/slsDetectorSoftware/src/SharedMemory.h b/slsDetectorSoftware/src/SharedMemory.h index effe2f0b2..064574069 100644 --- a/slsDetectorSoftware/src/SharedMemory.h +++ b/slsDetectorSoftware/src/SharedMemory.h @@ -218,7 +218,7 @@ template 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);