summaryrefslogtreecommitdiff
path: root/src/logger.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-05 15:55:55 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-05 15:55:55 +0300
commitd1bb1b375d657f0821ccfebf18fa1c3873314690 (patch)
treeeb83bbf7242b2c367c4df19113f37f6c6ab9faa2 /src/logger.cpp
parent9f87b4c92e3a4d524250dbbb376cd0f59b7d995e (diff)
downloadManaVerse-d1bb1b375d657f0821ccfebf18fa1c3873314690.tar.gz
ManaVerse-d1bb1b375d657f0821ccfebf18fa1c3873314690.tar.bz2
ManaVerse-d1bb1b375d657f0821ccfebf18fa1c3873314690.tar.xz
ManaVerse-d1bb1b375d657f0821ccfebf18fa1c3873314690.zip
Fix useless variables initialisations.
Diffstat (limited to 'src/logger.cpp')
-rw-r--r--src/logger.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/logger.cpp b/src/logger.cpp
index 2ccd8398f..5597f90d1 100644
--- a/src/logger.cpp
+++ b/src/logger.cpp
@@ -143,11 +143,10 @@ void Logger::log1(const char *const buf)
void Logger::log(const char *const log_text, ...)
{
unsigned size = 1024;
- char* buf = nullptr;
if (strlen(log_text) * 3 > size)
size = static_cast<unsigned>(strlen(log_text) * 3);
- buf = new char[size + 1];
+ char* buf = new char[size + 1];
va_list ap;
// Use a temporary buffer to fill in the variables