diff libpurple/xmlnode.c @ 17618: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 4be5d38ee117
children 5c1ed6296b56
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);