changeset 17891:9d02fefaa589

Fixed a bug in xmlnode_copy, it didn't preserve the namespace in the copy.
author Andreas Monitzer <pidgin@monitzer.com>
date Tue, 03 Jul 2007 15:33:39 +0000
parents 935005186312
children 22c848c81ccd
files libpurple/xmlnode.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/xmlnode.c	Tue Jul 03 13:37:25 2007 +0000
+++ b/libpurple/xmlnode.c	Tue Jul 03 15:33:39 2007 +0000
@@ -593,6 +593,7 @@
 	g_return_val_if_fail(src != NULL, NULL);
 
 	ret = new_node(src->name, src->type);
+	ret->xmlns = g_strdup(src->xmlns);
 	if(src->data) {
 		if(src->data_sz) {
 			ret->data = g_memdup(src->data, src->data_sz);