always return a string from parse_string
This commit is contained in:
parent
c8fa3a6028
commit
577ae81f3f
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ void parse_tree(xmlDocPtr doc, xmlNodePtr node, void *nothing)
|
|||
char *parse_string(xmlDocPtr doc, xmlNodePtr node)
|
||||
{
|
||||
xmlChar *c = xmlNodeListGetString(doc, node->xmlChildrenNode, TRUE);
|
||||
char *s = g_strdup((char*)c);
|
||||
char *s = g_strdup(c ? (char*)c : "");
|
||||
xmlFree(c);
|
||||
return s;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue