summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2006-09-23 09:09:36 +0000
committerSebastien Helleu <flashcode@flashtux.org>2006-09-23 09:09:36 +0000
commit63416bb80115424ae56b1e524c861480f8b2ce2a (patch)
tree61e6cac0259265a5cf450be2bb0929fc012dee6d /src/irc
parenta33efdd755bd00c604d1af2f7f0a34f419cb5457 (diff)
downloadweechat-63416bb80115424ae56b1e524c861480f8b2ce2a.zip
Fixed random crash with /upgrade command (error when loading buffers)
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/irc-channel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/irc/irc-channel.c b/src/irc/irc-channel.c
index 902a06ed3..482352c56 100644
--- a/src/irc/irc-channel.c
+++ b/src/irc/irc-channel.c
@@ -72,7 +72,8 @@ channel_new (t_irc_server *server, int channel_type, char *channel_name)
new_channel->display_creation_date = 0;
new_channel->nicks = NULL;
new_channel->last_nick = NULL;
-
+ new_channel->buffer = NULL;
+
/* add new channel to queue */
new_channel->prev_channel = server->last_channel;
new_channel->next_channel = NULL;