mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Address some cppcheck complaints
This commit is contained in:
@@ -83,7 +83,6 @@ int main(int argc, char **argv) {
|
||||
|
||||
for (int i = 0; i < rules->size(); i++) {
|
||||
auto z = rules->at(i);
|
||||
std::string key;
|
||||
if (z == NULL) {
|
||||
continue;
|
||||
}
|
||||
@@ -95,7 +94,6 @@ int main(int argc, char **argv) {
|
||||
} else {
|
||||
operators[op] = 1;
|
||||
}
|
||||
key = op;
|
||||
}
|
||||
|
||||
if (dynamic_cast<modsecurity::RuleWithOperator *>(z.get()) != nullptr) {
|
||||
@@ -107,7 +105,6 @@ int main(int argc, char **argv) {
|
||||
} else {
|
||||
operators[op] = 1;
|
||||
}
|
||||
key = op;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user