[Telepathy-commits] [telepathy-mission-control/master] Don't try to set a presence, if it was not requested.
Alberto Mardegan
alberto.mardegan at nokia.com
Wed Dec 10 01:25:45 PST 2008
Fixes a possible crash.
---
src/mcd-connection.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/mcd-connection.c b/src/mcd-connection.c
index 4bfd464..5ffb6ad 100644
--- a/src/mcd-connection.c
+++ b/src/mcd-connection.c
@@ -224,6 +224,9 @@ _check_presence (McdConnectionPrivate *priv, TpConnectionPresenceType presence,
{
const gchar **fallbacks;
+ if (presence == TP_CONNECTION_PRESENCE_TYPE_UNSET || *status == NULL)
+ return FALSE;
+
if (g_hash_table_lookup (priv->recognized_presences, *status))
return TRUE;
--
1.5.6.5
More information about the Telepathy-commits
mailing list