changeset 12198:9679b615edb8

[gaim-migrate @ 14500] ugh committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Wed, 23 Nov 2005 14:30:51 +0000
parents 0ab1c9916dc2
children 0a549a454d8e
files src/xmlnode.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xmlnode.c	Wed Nov 23 04:39:52 2005 +0000
+++ b/src/xmlnode.c	Wed Nov 23 14:30:51 2005 +0000
@@ -292,7 +292,7 @@
 				esc = xmlnode_to_str_helper(c, &esc_len, pretty, depth+1);
 				text = g_string_append_len(text, esc, esc_len);
 				g_free(esc);
-			} else if(c->type == XMLNODE_TYPE_DATA) {
+			} else if(c->type == XMLNODE_TYPE_DATA && c->data_sz > 0) {
 				esc = g_markup_escape_text(c->data, c->data_sz);
 				text = g_string_append(text, esc);
 				g_free(esc);