diff options
-rw-r--r-- | src/xine-utils/xmlparser.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/xine-utils/xmlparser.c b/src/xine-utils/xmlparser.c index 38e01fc19..7c9f73f09 100644 --- a/src/xine-utils/xmlparser.c +++ b/src/xine-utils/xmlparser.c @@ -209,9 +209,13 @@ static xml_node_t *xml_parser_append_text (xml_node_t *node, xml_node_t *subnode asprintf (&newtext, "%s%s", node->data, text); free (node->data); node->data = newtext; - } else + } else { /* no text, "no" subtree - duplicate & assign */ - node->data = strdup (text); + while (isspace (*text)) + ++text; + if (*text) + node->data = strdup (text); + } return subnode; } |