Cosmetics: address cppcheck warnings on src/utils

This commit is contained in:
Felipe Zimmerle
2020-01-23 08:51:45 -03:00
parent ff590174da
commit ff9152ed74
4 changed files with 12 additions and 7 deletions

View File

@@ -75,12 +75,13 @@ class SharedFiles {
private:
SharedFiles()
#ifdef MODSEC_USE_GENERAL_LOCK
: m_generalLock(NULL)
: m_generalLock(NULL),
m_memKeyStructure(0)
#endif
{
#ifdef MODSEC_USE_GENERAL_LOCK
int shm_id;
bool toBeCreated = true;
bool toBeCreated;
bool err = false;
m_memKeyStructure = ftok(".", 1);
@@ -122,7 +123,6 @@ err_shmget1:
err_shmat1:
std::cerr << "err_shmat1" << std::endl;
}
toBeCreated = false;
#endif
}
~SharedFiles() {