]> git.0d.be Git - empathy.git/commitdiff
Use a different loop with nodes to shorten code. (Jonny Lamb)
authorJonny Lamb <jonny.lamb@collabora.co.uk>
Fri, 17 Oct 2008 12:46:28 +0000 (12:46 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 17 Oct 2008 12:46:28 +0000 (12:46 +0000)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
svn path=/trunk/; revision=1606

src/empathy-import-dialog.c

index 87606c2341c7f66425f3bf44759609fc5f0e719f..d6d28eee2b57e851d20800b8183abbc3c847937b 100644 (file)
@@ -274,8 +274,7 @@ empathy_import_dialog_pidgin_import_accounts ()
   if (rootnode == NULL)
     return;
 
-  node = rootnode->children;
-  while (node)
+  for (node = rootnode->children; node; node = node->next)
     {
       if (strcmp ((gchar *) node->name, PIDGIN_ACCOUNT_TAG_ACCOUNT) == 0)
         {
@@ -364,7 +363,6 @@ empathy_import_dialog_pidgin_import_accounts ()
           g_hash_table_unref (settings);
         }
 
-      node = node->next;
     }
 
   xmlFreeDoc(doc);