aboutsummaryrefslogtreecommitdiff
path: root/libgcobol
diff options
context:
space:
mode:
Diffstat (limited to 'libgcobol')
-rw-r--r--libgcobol/ChangeLog5
-rw-r--r--libgcobol/xmlparse.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/libgcobol/ChangeLog b/libgcobol/ChangeLog
index 1858e80..67b25fe 100644
--- a/libgcobol/ChangeLog
+++ b/libgcobol/ChangeLog
@@ -1,3 +1,8 @@
+2025-10-25 Sam James <sam@gentoo.org>
+
+ PR cobol/122398
+ * xmlparse.cc (__gg__xml_parse): Make 'msg' const.
+
2025-10-23 Robert Dubner <rdubner@symas.com>
* charmaps.cc: Encoding.
diff --git a/libgcobol/xmlparse.cc b/libgcobol/xmlparse.cc
index 69849e3..57d370a 100644
--- a/libgcobol/xmlparse.cc
+++ b/libgcobol/xmlparse.cc
@@ -582,7 +582,7 @@ __gg__xml_parse( const cblc_field_t *input_field,
int erc = xmlSAXUserParseMemory(&handlers, nullptr, input, len);
if( erc ) {
- xmlErrorPtr msg = xmlCtxtGetLastError(nullptr);
+ const xmlError* msg = xmlCtxtGetLastError(nullptr);
fprintf(stderr, "XML PARSE: error: line %d: %s (%d: %d.%d.%d)\n",
msg->line, msg->message, erc, msg->domain, msg->level, msg->code);
}