Fix some issues reported by the static analysis

This commit is contained in:
Felipe Zimmerle
2016-03-18 18:52:48 -03:00
parent 28008be616
commit c43391072c
5 changed files with 34 additions and 34 deletions

View File

@@ -53,6 +53,8 @@ bool InitCol::init(std::string *error) {
bool InitCol::evaluate(Rule *rule, Transaction *transaction) {
std::string collectionName;
collectionName = MacroExpansion::expand(m_collection_value, transaction);
std::cout << "Collection is not implemented yet, here is the ";
std::cout << "collection name: " << collectionName << std::endl;
return true;
}

View File

@@ -114,7 +114,7 @@ void Rbl::futherInfo_httpbl(struct sockaddr_in *sin, std::string ipStr,
debug(trans, 4, "RBL lookup of " + ipStr + " succeeded. %s: " \
+ std::to_string(days) + " " \
"days since last activity, threat score " \
+ std::to_string(score));
+ std::to_string(score) + ". Case: " + ptype);
}

View File

@@ -125,7 +125,6 @@ void chomp(std::string *str) {
std::string tolower(std::string str) {
std::locale loc;
std::string value;
value.resize(str.length());