summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2010-04-20 15:13:45 +0100
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2010-04-20 15:13:45 +0100
commit901aa0b14a5392e596c32c04a6285947534f292e (patch)
tree7d7dbba39539b88cd6126087beabbecff6c91d1a
parentb009397934830635416101c370fae88ad6532261 (diff)
Set the namespace as soon as we create a node
-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);