diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2008-10-17 20:46:28 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-10-17 20:46:28 +0800 |
commit | b843121e84fa2ce69ceb1c0c952be755e102a099 (patch) | |
tree | 0bfcfa13b36af99a188e8efe552e7a8086fe6e60 /src | |
parent | 7ebff72a2ed61fef178a93f728ee4a70455540a7 (diff) | |
download | gsoc2013-empathy-b843121e84fa2ce69ceb1c0c952be755e102a099.tar gsoc2013-empathy-b843121e84fa2ce69ceb1c0c952be755e102a099.tar.gz gsoc2013-empathy-b843121e84fa2ce69ceb1c0c952be755e102a099.tar.bz2 gsoc2013-empathy-b843121e84fa2ce69ceb1c0c952be755e102a099.tar.lz gsoc2013-empathy-b843121e84fa2ce69ceb1c0c952be755e102a099.tar.xz gsoc2013-empathy-b843121e84fa2ce69ceb1c0c952be755e102a099.tar.zst gsoc2013-empathy-b843121e84fa2ce69ceb1c0c952be755e102a099.zip |
Use a different loop with nodes to shorten code. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
svn path=/trunk/; revision=1606
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-import-dialog.c | 4 |
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); |