summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2011-05-18 11:15:07 +0100
committerJonny Lamb <jonny.lamb@collabora.co.uk>2011-05-18 11:15:07 +0100
commit2ba2d147f8f2cb6b9dd2b1dba6b16fa818b7a3b3 (patch)
tree03a047762441d3642029a1a65cfb6ea830d1946d
parentc2f9bae72b15b82cdb8bad0f20bc12c09d93b6e4 (diff)
connection: set the self handle to something sane instead of leaving uninitializedHEADmaster
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r--telepathy-glib/connection.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/telepathy-glib/connection.c b/telepathy-glib/connection.c
index faf243d5..d4debb2f 100644
--- a/telepathy-glib/connection.c
+++ b/telepathy-glib/connection.c
@@ -1018,6 +1018,10 @@ _tp_connection_extract_properties (TpConnection *self,
if (!sufficient || *self_handle == 0)
return FALSE;
}
+ else
+ {
+ *self_handle = 0;
+ }
return TRUE;
}