From c7dab2d3c6936443fb4aee43f54defa81b5dc592 Mon Sep 17 00:00:00 2001 From: Maksim Melnikau Date: Sun, 31 Mar 2013 19:40:51 +0300 Subject: contact list C-example: fix iterating Signed-off-by: Maksim Melnikau Bug: https://bugs.freedesktop.org/show_bug.cgi?id=62968 Reviewed-by: Simon McVittie --- examples/client/contact-list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') 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; -- cgit v1.2.1