From 18a4f7da0ea652a5dce3275e183674e4e874aed1 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 13 Jan 2013 18:21:26 +0000 Subject: Fix segfault by setting room subject to NULL on creation --- src/muc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/muc.c b/src/muc.c index 67c38ee5..79cf1208 100644 --- a/src/muc.c +++ b/src/muc.c @@ -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(); -- cgit 1.4.1-2-gfad0