mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 03:57:47 +03:00
Cosmetics: Fix static analysis warnings
This commit is contained in:
@@ -56,11 +56,10 @@ void DebugLogWriter::close(const std::string& fileName) {
|
||||
|
||||
void DebugLogWriter::write(const std::string& file, const std::string &msg) {
|
||||
std::map<std::string, DebugLogWriterAgent *>::iterator it;
|
||||
DebugLogWriterAgent *agent;
|
||||
|
||||
it = agents.find(file);
|
||||
if (it != agents.end()) {
|
||||
agent = it->second;
|
||||
DebugLogWriterAgent *agent = it->second;
|
||||
agent->write(msg);
|
||||
} else {
|
||||
std::cout << file << ": " << msg << std::endl;
|
||||
|
Reference in New Issue
Block a user