mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
add debug messages
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6438 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
58bbb21a93
commit
546694b975
@ -449,15 +449,22 @@ dom_tree_to_text(xmlNodePtr tree)
|
||||
gchar *temp;
|
||||
|
||||
g_return_val_if_fail(tree, NULL);
|
||||
|
||||
/* no nodes means it's an empty string text */
|
||||
if(!tree->xmlChildrenNode)
|
||||
{
|
||||
PINFO ("No children");
|
||||
return g_strdup("");
|
||||
}
|
||||
|
||||
temp = xmlNodeListGetString (NULL, tree->xmlChildrenNode, TRUE);
|
||||
if (!temp) return NULL;
|
||||
if (!temp)
|
||||
{
|
||||
PINFO ("Null string");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
PINFO ("node string is >>>%s<<<\n", temp);
|
||||
result = g_strdup (temp);
|
||||
xmlFree (temp);
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user