aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/gossip-chatroom.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy/gossip-chatroom.c')
-rw-r--r--libempathy/gossip-chatroom.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libempathy/gossip-chatroom.c b/libempathy/gossip-chatroom.c
index eccd2824c..5b1760fdd 100644
--- a/libempathy/gossip-chatroom.c
+++ b/libempathy/gossip-chatroom.c
@@ -300,12 +300,14 @@ gossip_chatroom_set_name (GossipChatroom *chatroom,
GossipChatroomPriv *priv;
g_return_if_fail (GOSSIP_IS_CHATROOM (chatroom));
- g_return_if_fail (name != NULL);
priv = GET_PRIV (chatroom);
g_free (priv->name);
- priv->name = g_strdup (name);
+ priv->name = NULL;
+ if (name) {
+ priv->name = g_strdup (name);
+ }
g_object_notify (G_OBJECT (chatroom), "name");
}