diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-11-15 13:17:24 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2014-01-29 19:28:31 +0000 |
commit | 443a396b555635313f12163b0351f81fc63576ad (patch) | |
tree | 2b8d9b6406f4858ad9838659b85ab9fcd15fb907 | |
parent | fb880af29636b7540116b865a122fa0757dd6ced (diff) |
mcd_storage_load: convert while loop into for loop
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=27727
-rw-r--r-- | src/mcd-storage.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mcd-storage.c b/src/mcd-storage.c index 0ded3492..35eaed5f 100644 --- a/src/mcd-storage.c +++ b/src/mcd-storage.c @@ -498,11 +498,9 @@ mcd_storage_load (McdStorage *self) sort_and_cache_plugins (); - store = stores; - /* fetch accounts stored in plugins, highest priority first, so that * low priority plugins can be overidden by high priority */ - while (store != NULL) + for (store = stores; store != NULL; store = store->next) { GList *account; McpAccountStorage *plugin = store->data; @@ -530,7 +528,6 @@ mcd_storage_load (McdStorage *self) /* already freed the contents, just need to free the list itself */ g_list_free (stored); - store = store->next; } } |