1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-06-30 17:13:08 +00:00

Added implicit initialisation of "i" in Conf_GetServer to workaround a egcs

2.91.66 bug which claims that this valiable could be used uninitialized.
This commit is contained in:
Alexander Barton 2003-04-21 11:06:07 +00:00
parent 489d8c5cd0
commit a061668b1a

View File

@ -14,7 +14,7 @@
#include "portab.h" #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 "imp.h"
#include <assert.h> #include <assert.h>
@ -230,9 +230,9 @@ GLOBAL INT
Conf_GetServer( CONN_ID Idx ) Conf_GetServer( CONN_ID Idx )
{ {
/* Get index of server in configuration structure */ /* Get index of server in configuration structure */
INT i; INT i = 0;
assert( Idx > NONE ); assert( Idx > NONE );
for( i = 0; i < MAX_SERVERS; i++ ) for( i = 0; i < MAX_SERVERS; i++ )