瀏覽代碼

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)