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

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

View File

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