aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-idle.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-05-05 18:21:17 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-05-05 18:21:17 +0800
commit62828fac680bd53e0047d9ae2a281c864075c809 (patch)
treee120b9730c1e89a4c0ca22b2a05d6a97d0e7187a /libempathy/empathy-idle.c
parent8dbbe0d9fdd3ee8f1c30bcea1662d67d4e6aa5d3 (diff)
downloadgsoc2013-empathy-62828fac680bd53e0047d9ae2a281c864075c809.tar
gsoc2013-empathy-62828fac680bd53e0047d9ae2a281c864075c809.tar.gz
gsoc2013-empathy-62828fac680bd53e0047d9ae2a281c864075c809.tar.bz2
gsoc2013-empathy-62828fac680bd53e0047d9ae2a281c864075c809.tar.lz
gsoc2013-empathy-62828fac680bd53e0047d9ae2a281c864075c809.tar.xz
gsoc2013-empathy-62828fac680bd53e0047d9ae2a281c864075c809.tar.zst
gsoc2013-empathy-62828fac680bd53e0047d9ae2a281c864075c809.zip
If self presence message is "" do like if it was NULL.
svn path=/trunk/; revision=1081
Diffstat (limited to 'libempathy/empathy-idle.c')
-rw-r--r--libempathy/empathy-idle.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libempathy/empathy-idle.c b/libempathy/empathy-idle.c
index b6566a6f6..7da1a00e6 100644
--- a/libempathy/empathy-idle.c
+++ b/libempathy/empathy-idle.c
@@ -172,6 +172,10 @@ empathy_idle_init (EmpathyIdle *idle)
priv->mc = empathy_mission_control_new ();
priv->state = mission_control_get_presence_actual (priv->mc, NULL);
priv->status = mission_control_get_presence_message_actual (priv->mc, NULL);
+ if (G_STR_EMPTY (priv->status)) {
+ g_free (priv->status);
+ priv->status = NULL;
+ }
dbus_g_proxy_connect_signal (DBUS_G_PROXY (priv->mc),
"PresenceChanged",