mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
cosmetics: Address some cppcheck complains
This commit is contained in:
@@ -50,7 +50,7 @@ namespace modsecurity {
|
||||
int RulesSet::loadFromUri(const char *uri) {
|
||||
Driver *driver = new Driver();
|
||||
|
||||
if (driver->parseFile(uri) == false) {
|
||||
if (driver->parseFile(uri) == 0) {
|
||||
m_parserError << driver->m_parserError.str();
|
||||
delete driver;
|
||||
return -1;
|
||||
@@ -66,7 +66,7 @@ int RulesSet::loadFromUri(const char *uri) {
|
||||
int RulesSet::load(const char *file, const std::string &ref) {
|
||||
Driver *driver = new Driver();
|
||||
|
||||
if (driver->parse(file, ref) == false) {
|
||||
if (driver->parse(file, ref) == 0) {
|
||||
m_parserError << driver->m_parserError.str();
|
||||
delete driver;
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user