[Telepathy-commits] [telepathy-glib/master] TpProxy: suppress false positives from uninitialized GError detector
Simon McVittie
simon.mcvittie at collabora.co.uk
Wed Oct 15 03:48:35 PDT 2008
---
telepathy-glib/proxy-methods.c | 2 +-
telepathy-glib/proxy.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/telepathy-glib/proxy-methods.c b/telepathy-glib/proxy-methods.c
index 227245c..58d8bfb 100644
--- a/telepathy-glib/proxy-methods.c
+++ b/telepathy-glib/proxy-methods.c
@@ -80,7 +80,7 @@ struct _TpProxyPendingCall {
/* arguments for invoke_callback supplied by _take_results, by
* cancellation or by the destroy signal */
- GError *error;
+ GError *error /* implicitly initialized */;
GValueArray *args;
/* user-supplied arguments for invoke_callback */
diff --git a/telepathy-glib/proxy.c b/telepathy-glib/proxy.c
index e662fcf..e4b8601 100644
--- a/telepathy-glib/proxy.c
+++ b/telepathy-glib/proxy.c
@@ -550,7 +550,7 @@ _tp_proxy_take_and_remap_error (TpProxy *self,
}
else
{
- GError *replacement;
+ GError *replacement = NULL;
const gchar *dbus = dbus_g_error_get_name (error);
GType proxy_type = TP_TYPE_PROXY;
GType type;
--
1.5.6.5
More information about the Telepathy-commits
mailing list