Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/dmixml.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ xmlNode *dmixml_FindNode(xmlNode *node, const char *key) {
* @return char* Pointer to the tag contents if found, otherwise NULL. This value
* must NOT be freed, as it points directly into the value in the XML document.
*/
inline char *dmixml_GetContent(xmlNode *node) {
char *dmixml_GetContent(xmlNode *node) {
// FIXME: Should find better way how to return UTF-8 data
return (((node != NULL) && (node->children != NULL)) ? (char *) node->children->content : NULL);
}
Expand All @@ -377,7 +377,7 @@ inline char *dmixml_GetContent(xmlNode *node) {
* @return char* Pointer to the tag contents if found, otherwise NULL. This value
* must NOT be freed, as it points directly into the value in the XML document.
*/
inline char *dmixml_GetNodeContent(xmlNode *node, const char *key) {
char *dmixml_GetNodeContent(xmlNode *node, const char *key) {
return dmixml_GetContent(dmixml_FindNode(node, key));
}

Expand Down