From 901aa0b14a5392e596c32c04a6285947534f292e Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Tue, 20 Apr 2010 15:13:45 +0100 Subject: Set the namespace as soon as we create a node --- lib/loudmouth/lm-message-node.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/loudmouth/lm-message-node.c b/lib/loudmouth/lm-message-node.c index 5149b7a84..4491541d1 100644 --- a/lib/loudmouth/lm-message-node.c +++ b/lib/loudmouth/lm-message-node.c @@ -41,10 +41,9 @@ copy_node (WockyNode *node) WockyNode *copy; GSList *l; - copy = wocky_node_new (node->name, NULL); + copy = wocky_node_new (node->name, wocky_node_get_ns (node)); wocky_node_set_content (copy, node->content); wocky_node_set_language (copy, wocky_node_get_language (node)); - wocky_node_set_ns (copy, wocky_node_get_ns (node)); wocky_node_each_attribute (node, copy_attribute, copy); -- cgit v1.2.3