diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-07-21 00:47:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-21 00:47:44 +0300 |
commit | fffbd86a1014ad169ed2d68ea58cdddf346faa14 (patch) | |
tree | 713c96fcf7421ca87f638d312e752179281cb8fe /src/utils/xml.cpp | |
parent | 1941b81a5a278f26a5d7e1f91903ab04c92e2cd1 (diff) | |
download | manaverse-fffbd86a1014ad169ed2d68ea58cdddf346faa14.tar.gz manaverse-fffbd86a1014ad169ed2d68ea58cdddf346faa14.tar.bz2 manaverse-fffbd86a1014ad169ed2d68ea58cdddf346faa14.tar.xz manaverse-fffbd86a1014ad169ed2d68ea58cdddf346faa14.zip |
Add missing checks and non null attributes.
Diffstat (limited to 'src/utils/xml.cpp')
-rw-r--r-- | src/utils/xml.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils/xml.cpp b/src/utils/xml.cpp index 8642140c9..e9b2260bf 100644 --- a/src/utils/xml.cpp +++ b/src/utils/xml.cpp @@ -54,6 +54,9 @@ static void xmlErrorLogger(void *ctx A_UNUSED, const char *msg, ...) if (msgSize * 3 > size) size = msgSize * 3; + if (!msg) + return; + char* buf = new char[size + 1]; va_list ap; |