json-glib: update to 1.10.6
[oi-userland.git] / components / library / libmusicbrainz-5 / patches / 02-fix-xmlGetLastError.patch
blob162a39904901dcf746572c73dfbefc52ba2501ac
1 --- libmusicbrainz-5.1.0/src/xmlParser.cc.orig 2014-11-13 14:12:24.000000000 +0100
2 +++ libmusicbrainz-5.1.0/src/xmlParser.cc 2024-04-04 19:04:26.705610574 +0200
3 @@ -56,7 +56,7 @@
5 doc = xmlParseFile(filename.c_str());
6 if ((doc == NULL) && (results != NULL)) {
7 - xmlErrorPtr error = xmlGetLastError();
8 + const xmlErrorPtr error = xmlGetLastError();
9 results->message = error->message;
10 results->line = error->line;
11 results->code = error->code;
12 @@ -71,7 +71,7 @@
14 doc = xmlParseMemory(xml.c_str(), xml.length());
15 if ((doc == NULL) && (results != NULL)) {
16 - xmlErrorPtr error = xmlGetLastError();
17 + const xmlErrorPtr error = xmlGetLastError();
18 results->message = error->message;
19 results->line = error->line;
20 results->code = error->code;