1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Fix segfault by setting room subject to NULL on creation

This commit is contained in:
James Booth 2013-01-13 18:21:26 +00:00
parent d87c20e666
commit 18a4f7da0e

View File

@ -58,6 +58,7 @@ muc_join_room(const char * const room, const char * const nick)
ChatRoom *new_room = malloc(sizeof(ChatRoom));
new_room->room = strdup(room);
new_room->nick = strdup(nick);
new_room->subject = NULL;
new_room->roster = g_hash_table_new_full(g_str_hash, g_str_equal, g_free,
(GDestroyNotify)p_contact_free);
new_room->nick_ac = p_autocomplete_new();