initialize chan->modes on create
authorpk910 <philipp@zoelle1.de>
Fri, 12 Aug 2011 04:27:33 +0000 (06:27 +0200)
committerpk910 <philipp@zoelle1.de>
Fri, 12 Aug 2011 04:27:33 +0000 (06:27 +0200)
ChanNode.c

index 7b3f1c3d71e80891cec53fd67ae96d30f25ded6e..93f4266c4e754e68ad6f60ceb9aed0a8002d7ecb 100644 (file)
@@ -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));