[eggheads-patches] PATCH: flags.c.warning.patch

Arty arthur2 at demoniak.hay-france.com
Wed Oct 20 11:52:35 CST 1999

gcc -c -g -O2 -Wall -I.. -DHAVE_CONFIG_H -DRFC_COMPLIANT flags.c
flags.c: In function `get_user_flagrec':
flags.c:604: warning: `cr' might be used uninitialized in this function

Fixes this warning. What worked for get_user_flagrec has to work for

-------------- next part --------------
Index: flags.c
RCS file: /usr/local/cvsroot/eggdrop1.3/src/flags.c,v
retrieving revision 1.3
diff -u -r1.3 flags.c
--- flags.c	1999/10/12 21:25:16	1.3
+++ flags.c	1999/10/20 12:23:28
@@ -586,7 +586,7 @@
 void set_user_flagrec(struct userrec *u, struct flag_record *fr,
 		      char *chname)
-  struct chanuserrec *cr;
+  struct chanuserrec *cr = NULL;
   int oldflags = fr->match;
   char buffer[100];
   struct chanset_t *ch;

More information about the Patches mailing list