summarylogtreecommitdiffstats
path: root/mapnik-libxml2_loader.patch
blob: 5e44923f697540db5bd1d63d5df6dbe2fc9325bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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";