aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/empathy-import-dialog.c4
1 files changed, 1 insertions, 3 deletions
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);