summarylogtreecommitdiffstats
path: root/mapnik-libxml2_loader.patch
diff options
context:
space:
mode:
Diffstat (limited to 'mapnik-libxml2_loader.patch')
-rw-r--r--mapnik-libxml2_loader.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/mapnik-libxml2_loader.patch b/mapnik-libxml2_loader.patch
new file mode 100644
index 000000000000..5e44923f6975
--- /dev/null
+++ b/mapnik-libxml2_loader.patch
@@ -0,0 +1,22 @@
+diff --git a/src/libxml2_loader.cpp b/src/libxml2_loader.cpp
+index 223d8df44..78dc8aa97 100644
+--- a/src/libxml2_loader.cpp
++++ b/src/libxml2_loader.cpp
+@@ -88,7 +88,7 @@ class libxml2_loader : util::noncopyable
+
+ if (!doc)
+ {
+- xmlError* error = xmlCtxtGetLastError(ctx_);
++ const xmlError* error = xmlCtxtGetLastError(ctx_);
+ if (error)
+ {
+ std::string msg("XML document not well formed:\n");
+@@ -128,7 +128,7 @@ class libxml2_loader : util::noncopyable
+ if (!doc)
+ {
+ std::string msg("XML document not well formed");
+- xmlError* error = xmlCtxtGetLastError(ctx_);
++ const xmlError* error = xmlCtxtGetLastError(ctx_);
+ if (error)
+ {
+ msg += ":\n";