[telepathy-gabble/master] error.c: use node iteration wrappers

Dafydd Harries daf at rhydd.org
Mon Jun 29 06:58:34 PDT 2009


---
 src/error.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/error.c b/src/error.c
index b7caa7f..55dc463 100644
--- a/src/error.c
+++ b/src/error.c
@@ -352,7 +352,7 @@ gabble_xmpp_error_from_node (LmMessageNode *error_node,
   g_return_val_if_fail (error_node != NULL, XMPP_ERROR_UNDEFINED_CONDITION);
 
   /* First, try to look it up the modern way */
-  if (error_node->children)
+  if (node_iter (error_node))
     {
       if (type_out != NULL)
         *type_out = error_type_to_enum (lm_message_node_get_attribute (
-- 
1.5.6.5




More information about the telepathy-commits mailing list