Core/Misc: Fix issues reported by static analysis

Coverity defect IDs: 1316687, 1316688
This commit is contained in:
jackpoz committed 2015-08-20 15:42:51 +02:00
1 parent 30fc4f9f63
commit 51a2a3fa93
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -50,6 +50,8 @@ AppenderFile::AppenderFile(uint8 id, std::string const& name, LogLevel level, Ap
if (extraArgs.size() > 2)
_maxFileSize = atoi(extraArgs[2]);
else
_maxFileSize = 0;
_dynamicName = std::string::npos != _fileName.find("%s");
_backup = (flags & APPENDER_FLAGS_MAKE_FILE_BACKUP) != 0;
+1 -1
View File
@@ -27,7 +27,7 @@
#include <cstdio>
#include <sstream>
Log::Log() : _ioService(nullptr), _strand(nullptr)
Log::Log() : AppenderId(0), lowestLogLevel(LOG_LEVEL_FATAL), _ioService(nullptr), _strand(nullptr)
{
m_logsTimestamp = "_" + GetTimestampStr();
RegisterAppender<AppenderConsole>();