Core/Misc: Fix issues reported by static analysis

Coverity defect IDs: 1316687, 1316688

(cherry picked from commit 51a2a3fa93)
This commit is contained in:
jackpoz
2015-08-20 15:42:51 +02:00
committed by Carbenium
parent a3732aea48
commit 7005089241
2 changed files with 3 additions and 1 deletions

View File

@@ -51,6 +51,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;