From 72a85ac8464130b946f37f9b0eeb4b0a34534bd6 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Thu, 13 Dec 2007 13:22:29 +0000 Subject: Have to append a value before doing anything otherwise the array's size is 0 svn path=/trunk/; revision=477 --- libempathy/empathy-tp-group.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libempathy') diff --git a/libempathy/empathy-tp-group.c b/libempathy/empathy-tp-group.c index 9dd09d8c8..9c70321d7 100644 --- a/libempathy/empathy-tp-group.c +++ b/libempathy/empathy-tp-group.c @@ -384,7 +384,7 @@ tp_group_get_local_pending_cb (DBusGProxy *proxy, EmpathyTpGroup *group = user_data; EmpathyTpGroupPriv *priv = GET_PRIV (group); GArray *handles; - guint i; + guint i = 0; if (error) { empathy_debug (DEBUG_DOMAIN, "Failed to get local pendings: %s", @@ -394,6 +394,7 @@ tp_group_get_local_pending_cb (DBusGProxy *proxy, } handles = g_array_sized_new (FALSE, FALSE, sizeof (guint), 1); + g_array_append_val (handles, i); for (i = 0; array->len > i; i++) { GValueArray *pending_struct; const gchar *message; -- cgit v1.2.3