Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions library/grt/src/grt.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <vector>
#include <stdexcept>
#include <boost/function.hpp>
#include <libxml/tree.h>
#include <libxml/xmlmemory.h>
#include "base/threading.h"
#include <string>
Expand Down
4 changes: 4 additions & 0 deletions library/grt/src/unserializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,11 @@ ValueRef internal::Unserializer::unserialize_xmldata(const char *data, size_t si
xmlDocPtr doc = xmlReadMemory(data, (int)size, NULL, NULL, XML_PARSE_NOENT);

if (!doc) {
#if LIBXML_VERSION >= 21200
const xmlError* error = xmlGetLastError();
#else
xmlErrorPtr error = xmlGetLastError();
#endif

if (error)
throw std::runtime_error(base::strfmt("Could not parse XML data. Line %d, %s", error->line, error->message));
Expand Down