diff options
author | jackpoz <giacomopoz@gmail.com> | 2015-08-20 15:42:51 +0200 |
---|---|---|
committer | Carbenium <carbenium@outlook.com> | 2015-09-24 22:36:37 +0200 |
commit | 7005089241e7bc7f0773810469ffcd9a4f67d200 (patch) | |
tree | 814d0a363f614ed0d27b378671b42f6355cc59f7 /src/common/Logging/AppenderFile.cpp | |
parent | a3732aea4898404f877b16dd392b65cdca550da3 (diff) |
Core/Misc: Fix issues reported by static analysis
Coverity defect IDs: 1316687, 1316688
(cherry picked from commit 51a2a3fa93702f289cda1e64323f55aba02f1026)
Diffstat (limited to 'src/common/Logging/AppenderFile.cpp')
-rw-r--r-- | src/common/Logging/AppenderFile.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/Logging/AppenderFile.cpp b/src/common/Logging/AppenderFile.cpp index bb15aed5e0b..0a20a6f4f32 100644 --- a/src/common/Logging/AppenderFile.cpp +++ b/src/common/Logging/AppenderFile.cpp @@ -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; |