initialize chanuser->flags on create
authorpk910 <philipp@zoelle1.de>
Thu, 11 Aug 2011 22:12:57 +0000 (00:12 +0200)
committerpk910 <philipp@zoelle1.de>
Thu, 11 Aug 2011 22:12:57 +0000 (00:12 +0200)
ChanUser.c

index 83324c4342d1f93ee26bc51477807df5f12f703e..9c98d465955247f8b65995e859cdee10d7b34721 100644 (file)
@@ -10,6 +10,7 @@ struct ChanUser* addChanUser(struct ChanNode *chan, struct UserNode *user) {
         perror("malloc() failed");
         return NULL;
     }
+    chanuser->flags = 0;
     chanuser->user = user;
     chanuser->chan = chan;