mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-16 07:56:12 +03:00
Fix some static analysis warnings
This commit is contained in:
parent
ac61d1c40b
commit
283c8c818d
@ -32,6 +32,10 @@ class Collection : public transaction::Variables {
|
|||||||
public:
|
public:
|
||||||
Collection(std::string name, std::string key)
|
Collection(std::string name, std::string key)
|
||||||
: m_name(name),
|
: m_name(name),
|
||||||
|
m_persisted(false),
|
||||||
|
m_timeout(0),
|
||||||
|
m_updateCounter(0),
|
||||||
|
m_updateRate(0),
|
||||||
m_key(key) { }
|
m_key(key) { }
|
||||||
|
|
||||||
std::string m_name;
|
std::string m_name;
|
||||||
|
@ -109,9 +109,7 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (operators.size() == 0 &&
|
if (operators.empty() && variables.empty() && op2var.empty()) {
|
||||||
variables.size() == 0 &&
|
|
||||||
op2var.size() == 0) {
|
|
||||||
std::cout << " ~ no SecRule found ~ " << std::endl;
|
std::cout << " ~ no SecRule found ~ " << std::endl;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user