diff options
| author | Alexander Barton <alex@barton.de> | 2003-04-21 11:06:07 +0000 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2003-04-21 11:06:07 +0000 |
| commit | a061668b1a516dceb60b8157fe404a56cddf81d1 (patch) | |
| tree | f69b039af69efe5687b3c423416ebe6182b726d8 | |
| parent | 489d8c5cd0be81e39b3294385992f91986dfdf38 (diff) | |
| download | ngircd-a061668b1a516dceb60b8157fe404a56cddf81d1.tar.gz ngircd-a061668b1a516dceb60b8157fe404a56cddf81d1.zip | |
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.
| -rw-r--r-- | src/ngircd/conf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index 9d6071e1..fe9fc80e 100644 --- a/src/ngircd/conf.c +++ b/src/ngircd/conf.c @@ -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++ ) |