mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Cosmetics: Reduces the static analysis warnings
This commit is contained in:
@@ -28,7 +28,8 @@ namespace Parser {
|
||||
Driver::Driver()
|
||||
: RulesProperties(),
|
||||
trace_scanning(false),
|
||||
trace_parsing(false) {
|
||||
trace_parsing(false),
|
||||
lastRule(NULL) {
|
||||
m_auditLog = new audit_log::AuditLog();
|
||||
m_auditLog->refCountIncrease();
|
||||
}
|
||||
@@ -116,7 +117,6 @@ int Driver::addSecRule(Rule *rule) {
|
||||
|
||||
|
||||
int Driver::parse(const std::string &f, const std::string &ref) {
|
||||
std::string error;
|
||||
lastRule = NULL;
|
||||
loc.push_back(new yy::location());
|
||||
if (ref.empty()) {
|
||||
|
@@ -59,8 +59,6 @@ class Driver : public RulesProperties {
|
||||
int addSecAction(Rule *rule);
|
||||
int addSecMarker(std::string marker);
|
||||
|
||||
int result;
|
||||
|
||||
bool scan_begin();
|
||||
void scan_end();
|
||||
bool trace_scanning;
|
||||
|
Reference in New Issue
Block a user