]> git.mdlowis.com Git - proto/labwc.git/commitdiff
test/xml: use xmlBufferContent()
authortokyo4j <hrak1529@gmail.com>
Mon, 29 Sep 2025 07:04:37 +0000 (16:04 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 29 Sep 2025 18:41:32 +0000 (19:41 +0100)
xmlBuffer->content has been deprecated.

t/xml.c

diff --git a/t/xml.c b/t/xml.c
index 003632a614fdbc822b6e1a6c4daabf110aac5da0..a7be6b87e07b06c99380f6dfb0c4ade9bb36608f 100644 (file)
--- a/t/xml.c
+++ b/t/xml.c
@@ -111,7 +111,7 @@ test_lab_xml_expand_dotted_attributes(void **state)
 
                xmlBuffer *buf = xmlBufferCreate();
                xmlNodeDump(buf, root->doc, root, 0, 0);
-               assert_string_equal(test_cases[i].after, (char *)buf->content);
+               assert_string_equal(test_cases[i].after, (char *)xmlBufferContent(buf));
                xmlBufferFree(buf);
 
                xmlFreeDoc(doc);