diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2010-04-20 15:13:45 +0100 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2010-04-20 15:13:45 +0100 |
commit | 901aa0b14a5392e596c32c04a6285947534f292e (patch) | |
tree | 7d7dbba39539b88cd6126087beabbecff6c91d1a | |
parent | b009397934830635416101c370fae88ad6532261 (diff) |
Set the namespace as soon as we create a node
-rw-r--r-- | lib/loudmouth/lm-message-node.c | 3 |
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); |