aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--libempathy/empathy-contact-factory.c2
-rw-r--r--libempathy/empathy-tp-call.c2
-rw-r--r--libempathy/empathy-tp-group.c2
-rw-r--r--libempathy/empathy-utils.c4
5 files changed, 13 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index fb77c9414..ab876c0c1 100644
--- 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.
diff --git a/libempathy/empathy-contact-factory.c b/libempathy/empathy-contact-factory.c
index 28f5f2d79..d9b04d2b2 100644
--- a/libempathy/empathy-contact-factory.c
+++ b/libempathy/empathy-contact-factory.c
@@ -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;
diff --git a/libempathy/empathy-tp-call.c b/libempathy/empathy-tp-call.c
index e0347ba9a..d4298a26c 100644
--- a/libempathy/empathy-tp-call.c
+++ b/libempathy/empathy-tp-call.c
@@ -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,
diff --git a/libempathy/empathy-tp-group.c b/libempathy/empathy-tp-group.c
index f6f8004cc..2c90f9d34 100644
--- a/libempathy/empathy-tp-group.c
+++ b/libempathy/empathy-tp-group.c
@@ -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);
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c
index e354e940d..032b121ea 100644
--- a/libempathy/empathy-utils.c
+++ b/libempathy/empathy-utils.c
@@ -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));