]> git.0d.be Git - empathy.git/commitdiff
Initialize every GError to NULL. Fixes bug #482889.
authorMarco Barisione <marco@barisione.org>
Wed, 3 Oct 2007 17:12:26 +0000 (17:12 +0000)
committerMarco Barisione <mbari@src.gnome.org>
Wed, 3 Oct 2007 17:12:26 +0000 (17:12 +0000)
2007-10-03  Marco Barisione  <marco@barisione.org>

* libempathy/empathy-contact-factory.c:
* libempathy/empathy-tp-call.c:
* libempathy/empathy-tp-group.c:
* libempathy/empathy-utils.c: Initialize every GError to NULL. Fixes
bug #482889.

svn path=/trunk/; revision=360

ChangeLog
libempathy/empathy-contact-factory.c
libempathy/empathy-tp-call.c
libempathy/empathy-tp-group.c
libempathy/empathy-utils.c

index fb77c9414868f733e1b6353a87d8c54b89cc5581..ab876c0c1bfc65a0d5fadc46e42bc45616fca7a5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-10-03  Marco Barisione  <marco@barisione.org>
+
+       * libempathy/empathy-contact-factory.c:
+       * libempathy/empathy-tp-call.c:
+       * libempathy/empathy-tp-group.c:
+       * libempathy/empathy-utils.c: Initialize every GError to NULL. Fixes
+       bug #482889.
+
 2007-10-02  Xavier Claessens  <xclaesse@gmail.com>
 
        * libempathy/empathy-tp-contact-list.c: Add back protocol group.
index 28f5f2d7933f602cdc50946d436ccec328413dd9..d9b04d2b222df2f5f1f3287ac51d1f608f525dc7 100644 (file)
@@ -815,7 +815,7 @@ contact_factory_account_data_update (ContactFactoryAccountData *account_data)
        const gchar              **contact_ids;
        guint                      i;
        GList                     *l;
-       GError                    *error;
+       GError                    *error = NULL;
 
        if (account_data->account) {
                guint status;
index e0347ba9a074496db5000358302d8cd72d11af8f..d4298a26c8281feaba47e83dba27e6a16a15d30b 100644 (file)
@@ -379,7 +379,7 @@ tp_call_finalize (GObject *object)
        empathy_debug (DEBUG_DOMAIN, "Finalizing: %p", object);
 
        if (priv->tp_chan) {
-               GError *error;
+               GError *error = NULL;
 
                g_signal_handlers_disconnect_by_func (priv->tp_chan,
                                                      tp_call_destroy_cb,
index f6f8004cce00a988246ad13fab83e351371a625f..2c90f9d34b424dc12a694ec2043066874660bba1 100644 (file)
@@ -560,7 +560,7 @@ empathy_tp_group_new (McAccount *account,
        EmpathyTpGroup     *group;
        EmpathyTpGroupPriv *priv;
        DBusGProxy         *group_iface;
-       GError             *error;
+       GError             *error = NULL;
 
        g_return_val_if_fail (TELEPATHY_IS_CHAN (tp_chan), NULL);
        g_return_val_if_fail (MC_IS_ACCOUNT (account), NULL);
index e354e940d64594138125490f036b29f6816975af..032b121ea66295039e4d981988caeda4998bf3b8 100644 (file)
@@ -427,7 +427,7 @@ empathy_inspect_handle (McAccount *account,
        GArray          *handles;
        gchar          **names;
        gchar           *name;
-       GError          *error;
+       GError          *error = NULL;
 
        g_return_val_if_fail (MC_IS_ACCOUNT (account), NULL);
        g_return_val_if_fail (handle != 0, NULL);
@@ -479,7 +479,7 @@ empathy_call_contact (EmpathyContact *contact)
        const gchar    *bus_name;
        TpChan         *new_chan;
        EmpathyTpGroup *group;
-       GError         *error;
+       GError         *error = NULL;
 
        g_return_if_fail (EMPATHY_IS_CONTACT (contact));