aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2007-12-13 21:22:29 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-12-13 21:22:29 +0800
commit72a85ac8464130b946f37f9b0eeb4b0a34534bd6 (patch)
treeb93a8990d4ef00fdf74a79c3e82ac0360042501b
parent190c18638caf1b17b16aada8ed9045f614f8387a (diff)
downloadgsoc2013-empathy-72a85ac8464130b946f37f9b0eeb4b0a34534bd6.tar
gsoc2013-empathy-72a85ac8464130b946f37f9b0eeb4b0a34534bd6.tar.gz
gsoc2013-empathy-72a85ac8464130b946f37f9b0eeb4b0a34534bd6.tar.bz2
gsoc2013-empathy-72a85ac8464130b946f37f9b0eeb4b0a34534bd6.tar.lz
gsoc2013-empathy-72a85ac8464130b946f37f9b0eeb4b0a34534bd6.tar.xz
gsoc2013-empathy-72a85ac8464130b946f37f9b0eeb4b0a34534bd6.tar.zst
gsoc2013-empathy-72a85ac8464130b946f37f9b0eeb4b0a34534bd6.zip
Have to append a value before doing anything otherwise the array's size is 0
svn path=/trunk/; revision=477
-rw-r--r--libempathy/empathy-tp-group.c3
1 files changed, 2 insertions, 1 deletions
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;