Cosmetics: Reduces the static analysis warnings

This commit is contained in:
Felipe Zimmerle
2016-12-28 17:46:47 -03:00
parent 9c7416da97
commit 88fb456a16
12 changed files with 37 additions and 41 deletions

View File

@@ -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;
}

View File

@@ -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;

View File

@@ -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) {