Commit 5bafca04 authored by Guido Gunther's avatar Guido Gunther

conversations: Don't crash without an alias

This makes chatty start for me again.
parent 5e03e282
......@@ -1068,7 +1068,10 @@ chatty_conv_get_chat_messages_cb (const unsigned char* msg,
// Extract the alias from 'who' (full_room_address/alias)
line_split = g_strsplit ((const gchar*)who, "/", -1);
alias = g_strdup(line_split[1]);
if (line_split)
alias = g_strdup(line_split[1]);
else
alias = g_strdup((const char *)who);
avatar = chatty_icon_get_buddy_icon ((PurpleBlistNode*)buddy,
(const gchar*)alias,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment