summaryrefslogtreecommitdiff
path: root/lib/loudmouth/lm-message-node.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/loudmouth/lm-message-node.c')
-rw-r--r--lib/loudmouth/lm-message-node.c3
1 files changed, 1 insertions, 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);