[empathy] index begin at 0 and not 1 for GArray



commit 3710528cebb73a471674af5ee478d5c24cff547d
Author: Xavier Claessens <xclaesse gmail com>
Date:   Tue Feb 17 15:51:45 2009 +0100

    index begin at 0 and not 1 for GArray
---
 libempathy/empathy-tp-contact-list.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libempathy/empathy-tp-contact-list.c b/libempathy/empathy-tp-contact-list.c
index 876e356..7988a3e 100644
--- a/libempathy/empathy-tp-contact-list.c
+++ b/libempathy/empathy-tp-contact-list.c
@@ -292,7 +292,7 @@ tp_contact_list_group_request_handles_cb (TpConnection *connection,
 		return;
 	}
 
-	data->channel_handle = g_array_index (handles, TpHandle, 1);
+	data->channel_handle = g_array_index (handles, TpHandle, 0);
 	data->ref_count++;
 	tp_cli_connection_call_request_channel (connection, -1,
 						TP_IFACE_CHANNEL_TYPE_CONTACT_LIST,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]