From dcbd9af2c8250de294f537c3d055b13970b59caa Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Wed, 18 May 2011 11:15:07 +0100 Subject: connection: set the self handle to something sane instead of leaving uninitialized Signed-off-by: Jonny Lamb --- telepathy-glib/connection.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/telepathy-glib/connection.c b/telepathy-glib/connection.c index f11f198a1..aeb738381 100644 --- a/telepathy-glib/connection.c +++ b/telepathy-glib/connection.c @@ -1006,6 +1006,10 @@ _tp_connection_extract_properties (TpConnection *self, if (!sufficient || *self_handle == 0) return FALSE; } + else + { + *self_handle = 0; + } return TRUE; } -- cgit v1.2.1