Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Commit time: 2005-09-27 04:00:05 UTC

Modified files:
     ChangeLog ircd/whocmds.c

Log message:

Fix uninitialized variable warning about 'chan'.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.708 ircu2.10/ChangeLog:1.709
--- ircu2.10/ChangeLog:1.708    Mon Sep 26 20:54:46 2005
+++ ircu2.10/ChangeLog  Mon Sep 26 20:59:55 2005
@@ -1,5 +1,10 @@
 2005-09-26  Michael Poole <[EMAIL PROTECTED]>
 
+       * ircd/whocmds.c (do_who): Fix uninitialized variable warning
+       about 'chan'.
+
+2005-09-26  Michael Poole <[EMAIL PROTECTED]>
+
        * ircd/parse.c (del_msg_element): Only delete empty subtrees, and
        leave subtrees that may still contain data.
 
Index: ircu2.10/ircd/whocmds.c
diff -u ircu2.10/ircd/whocmds.c:1.24 ircu2.10/ircd/whocmds.c:1.25
--- ircu2.10/ircd/whocmds.c:1.24        Fri Sep 23 19:57:20 2005
+++ ircu2.10/ircd/whocmds.c     Mon Sep 26 20:59:55 2005
@@ -22,7 +22,7 @@
  */
 /** @file
  * @brief Support functions for /WHO-like commands.
- * @version $Id: whocmds.c,v 1.24 2005/09/24 02:57:20 entrope Exp $
+ * @version $Id: whocmds.c,v 1.25 2005/09/27 03:59:55 entrope Exp $
  */
 #include "config.h"
 
@@ -72,7 +72,7 @@
             int fields, char* qrt)
 {
   char *p1;
-  struct Membership *chan;
+  struct Membership *chan = 0;
 
   static char buf1[512];
   /* NOTE: with current fields list and sizes this _cannot_ overrun, 
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to