]> git.0d.be Git - empathy.git/commitdiff
Have to append a value before doing anything otherwise the array's size is 0
authorXavier Claessens <xclaesse@src.gnome.org>
Thu, 13 Dec 2007 13:22:29 +0000 (13:22 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Thu, 13 Dec 2007 13:22:29 +0000 (13:22 +0000)
svn path=/trunk/; revision=477

libempathy/empathy-tp-group.c

index 9dd09d8c8811387c6691e1f29cea907f03467bd2..9c70321d792650d858f6cc8c39ace27ddda70f95 100644 (file)
@@ -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;