From e991bfdb453f2f707b58e280a0dcbaf46e25778a Mon Sep 17 00:00:00 2001 From: Maksim Melnikau Date: Sun, 31 Mar 2013 19:40:51 +0300 Subject: [PATCH] contact list C-example: fix iterating Signed-off-by: Maksim Melnikau --- examples/client/contact-list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/client/contact-list.c b/examples/client/contact-list.c index 36b9734..5ed82a4 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; -- 1.8.1.5