From fffbd86a1014ad169ed2d68ea58cdddf346faa14 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 21 Jul 2015 00:47:44 +0300 Subject: Add missing checks and non null attributes. --- src/utils/xml.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/utils/xml.cpp') 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; -- cgit v1.2.3-70-g09d2