diff --git a/src/cppcheck.cpp b/src/cppcheck.cpp index c01912800..6ecd7f2b6 100644 --- a/src/cppcheck.cpp +++ b/src/cppcheck.cpp @@ -272,7 +272,7 @@ void CppCheck::checkFile(const std::string &code, const char FileName[]) checkMemoryLeak.CheckMemoryLeak(); // Check that all class constructors are ok. - if (ErrorMessage::noConstructor(_settings) || ErrorMessage::uninitVar(_settings)) + if (ErrorMessage::noConstructor(_settings) && ErrorMessage::uninitVar(_settings)) checkClass.constructors(); // Check that all base classes have virtual destructors