mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Cosmetics: Reduces the static analysis warnings
This commit is contained in:
@@ -63,7 +63,6 @@ void Pm::cleanup(acmp_node_t *n) {
|
||||
}
|
||||
|
||||
free(n);
|
||||
n = NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -76,7 +75,6 @@ void Pm::postOrderTraversal(acmp_btree_node_t *node) {
|
||||
postOrderTraversal(node->left);
|
||||
|
||||
free(node);
|
||||
node = NULL;
|
||||
}
|
||||
|
||||
|
||||
|
@@ -62,8 +62,8 @@ class Rbl : public Operator {
|
||||
/** @ingroup ModSecurity_Operator */
|
||||
Rbl(std::string op, std::string param, bool negation)
|
||||
: Operator(op, param, negation),
|
||||
m_demandsPassword(false),
|
||||
m_service(param) {
|
||||
m_service(param),
|
||||
m_demandsPassword(false) {
|
||||
m_provider = RblProvider::UnknownProvider;
|
||||
if (m_service == "httpbl.org") {
|
||||
m_demandsPassword = true;
|
||||
|
@@ -35,9 +35,9 @@ class ValidateSchema : public Operator {
|
||||
/** @ingroup ModSecurity_Operator */
|
||||
ValidateSchema(std::string o, std::string p, bool i)
|
||||
: Operator(o, p, i),
|
||||
m_schema(NULL),
|
||||
m_parserCtx(NULL),
|
||||
m_validCtx(NULL),
|
||||
m_parserCtx(NULL) { }
|
||||
m_schema(NULL) { }
|
||||
~ValidateSchema() {
|
||||
/*
|
||||
if (m_schema != NULL) {
|
||||
|
Reference in New Issue
Block a user