From b843121e84fa2ce69ceb1c0c952be755e102a099 Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Fri, 17 Oct 2008 12:46:28 +0000 Subject: Use a different loop with nodes to shorten code. (Jonny Lamb) Signed-off-by: Jonny Lamb svn path=/trunk/; revision=1606 --- src/empathy-import-dialog.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/empathy-import-dialog.c b/src/empathy-import-dialog.c index 87606c234..d6d28eee2 100644 --- a/src/empathy-import-dialog.c +++ b/src/empathy-import-dialog.c @@ -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); -- cgit v1.2.3