summaryrefslogtreecommitdiffstats
path: root/source/cLog.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-25 15:29:07 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-25 15:29:07 +0200
commit534e22131667759be0cc610d52438a3a79dfe65a (patch)
tree3d69956c29a52dbb3c8bcb01ee9566458d3f4841 /source/cLog.cpp
parentAdded the new 1.2.4's PlayerAbilities packet; restructures packet files for less files, more dense. (diff)
downloadcuberite-534e22131667759be0cc610d52438a3a79dfe65a.tar
cuberite-534e22131667759be0cc610d52438a3a79dfe65a.tar.gz
cuberite-534e22131667759be0cc610d52438a3a79dfe65a.tar.bz2
cuberite-534e22131667759be0cc610d52438a3a79dfe65a.tar.lz
cuberite-534e22131667759be0cc610d52438a3a79dfe65a.tar.xz
cuberite-534e22131667759be0cc610d52438a3a79dfe65a.tar.zst
cuberite-534e22131667759be0cc610d52438a3a79dfe65a.zip
Diffstat (limited to 'source/cLog.cpp')
-rw-r--r--source/cLog.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/source/cLog.cpp b/source/cLog.cpp
index f8d1c731b..cf8448d8b 100644
--- a/source/cLog.cpp
+++ b/source/cLog.cpp
@@ -98,15 +98,7 @@ void cLog::ClearLog()
void cLog::Log(const char * a_Format, va_list argList)
{
AString Message;
- if (argList != NULL)
- {
- AppendVPrintf(Message, a_Format, argList);
- }
- else
- {
- // This branch needs to be here because of *nix crashing in vsnprintf() when argList is NULL
- Message.assign(a_Format);
- }
+ AppendVPrintf(Message, a_Format, argList);
time_t rawtime;
time ( &rawtime );