summaryrefslogtreecommitdiff
path: root/examples/client/contact-list.c
diff options
context:
space:
mode:
authorMaksim Melnikau <maxposedon@gmail.com>2013-03-31 19:40:51 +0300
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-04-02 10:03:07 +0100
commitc7dab2d3c6936443fb4aee43f54defa81b5dc592 (patch)
treea2b13b230cd31fb075989283441c5dab67ed7fae /examples/client/contact-list.c
parenta33573ff2c48b9ec37bb6c36801be3b80871e62b (diff)
contact list C-example: fix iterating
Signed-off-by: Maksim Melnikau <maxposedon@gmail.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=62968 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'examples/client/contact-list.c')
-rw-r--r--examples/client/contact-list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/client/contact-list.c b/examples/client/contact-list.c
index 36b973443..5ed82a4af 100644
--- a/examples/client/contact-list.c
+++ b/examples/client/contact-list.c
@@ -31,7 +31,7 @@ account_manager_prepared_cb (GObject *object,
accounts = tp_account_manager_dup_valid_accounts (manager);
for (l = accounts; l != NULL; l = l->next)
{
- TpAccount *account = accounts->data;
+ TpAccount *account = l->data;
TpConnection *connection = tp_account_get_connection (account);
GPtrArray *contacts;
guint i;