diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-07-26 18:55:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-26 18:55:44 +0300 |
commit | 8c3d197dbdfc00969f30309ee7bf52656b33ed1b (patch) | |
tree | 1ae60266bcd76a6399921ad9a0d5a9f6af9ae1de /src/utils/xml.cpp | |
parent | b29f6896196376a6b3c2abf60de766811264af75 (diff) | |
download | mv-8c3d197dbdfc00969f30309ee7bf52656b33ed1b.tar.gz mv-8c3d197dbdfc00969f30309ee7bf52656b33ed1b.tar.bz2 mv-8c3d197dbdfc00969f30309ee7bf52656b33ed1b.tar.xz mv-8c3d197dbdfc00969f30309ee7bf52656b33ed1b.zip |
Fix code style.
Diffstat (limited to 'src/utils/xml.cpp')
-rw-r--r-- | src/utils/xml.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/xml.cpp b/src/utils/xml.cpp index e9b2260bf..16888fae4 100644 --- a/src/utils/xml.cpp +++ b/src/utils/xml.cpp @@ -49,14 +49,14 @@ static void xmlErrorLogger(void *ctx A_UNUSED, const char *msg A_UNUSED, ...) static void xmlErrorLogger(void *ctx A_UNUSED, const char *msg, ...) { + if (!msg) + return; + size_t size = 1024; const size_t msgSize = strlen(msg); if (msgSize * 3 > size) size = msgSize * 3; - if (!msg) - return; - char* buf = new char[size + 1]; va_list ap; |