Core/Misc: Fix issues reported by static analysis
Coverity defect IDs: 1316687, 1316688 (cherry picked from commit 51a2a3fa93702f289cda1e64323f55aba02f1026)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user