From 3e3930aea81e474385b9fe52aef187f2cc441829 Mon Sep 17 00:00:00 2001 From: pk910 Date: Fri, 12 Aug 2011 06:27:33 +0200 Subject: [PATCH] initialize chan->modes on create --- ChanNode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ChanNode.c b/ChanNode.c index 7b3f1c3..93f4266 100644 --- a/ChanNode.c +++ b/ChanNode.c @@ -141,6 +141,7 @@ struct ChanNode* addChannel(const char *name) { chan->topic[0] = 0; chan->flags = 0; /* mode lists */ + chan->modes = 0; chan->mode_str_args = calloc(modes_with_strarg, sizeof(char*)); chan->mode_int_args = calloc(modes_with_intarg, sizeof(int)); -- 2.20.1