]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Added implicit initialisation of "i" in Conf_GetServer to workaround a egcs
authorAlexander Barton <alex@barton.de>
Mon, 21 Apr 2003 11:06:07 +0000 (11:06 +0000)
committerAlexander Barton <alex@barton.de>
Mon, 21 Apr 2003 11:06:07 +0000 (11:06 +0000)
2.91.66 bug which claims that this valiable could be used uninitialized.

src/ngircd/conf.c

index 9d6071e1e5c165c90a535b42450329a754e0dab3..fe9fc80ebc2a426de87b106fe5d4d1ac1f57e035 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: conf.c,v 1.56 2003/04/20 23:09:43 alex Exp $";
+static char UNUSED id[] = "$Id: conf.c,v 1.57 2003/04/21 11:06:07 alex Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -230,9 +230,9 @@ GLOBAL INT
 Conf_GetServer( CONN_ID Idx )
 {
        /* Get index of server in configuration structure */
-
-       INT i;
-
+       
+       INT i = 0;
+       
        assert( Idx > NONE );
 
        for( i = 0; i < MAX_SERVERS; i++ )