mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-20 11:06:40 +03:00
Cosmetics: address cppcheck warnings on src/utils
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user