ソースを参照

Fix redundant channel lookup.

Spotted by:	scan-build
Bryan Drewery 11 年 前
コミット
155121bc5f
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/mod/irc.mod/chan.cc

+ 1 - 1
src/mod/irc.mod/chan.cc

@@ -3388,7 +3388,7 @@ static int gotnotice(char *from, char *msg)
   
   bool ignoring = match_ignore(from);
   char *to = newsplit(&msg), *realto = (*to == '@') ? to + 1 : to;
-  struct chanset_t *chan = findchan(realto); 
+  struct chanset_t *chan = NULL;
 
   chan = findchan(realto);
   if (!chan)