commit | f863ac152a0bae59c493558e7018a96812336a05 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Mar 04 06:38:57 2008 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Tue Mar 04 06:38:57 2008 +0100 |
tree | 1f95c72055434e4c5c830287b7484b0c977fc84f | |
parent | 2c6962c3c065a00c107242ba89913c3eecde05b9 [diff] |
[MINOR] silent gcc for a wrong warning gcc believes that avoididx may be used uninitialized, which is wrong.
diff --git a/include/proto/backend.h b/include/proto/backend.h index c4ffe85..1720105 100644 --- a/include/proto/backend.h +++ b/include/proto/backend.h
@@ -66,6 +66,7 @@ newidx = px->lbprm.map.rr_idx; avoided = NULL; + avoididx = 0; /* shut a gcc warning */ do { srv = px->lbprm.map.srv[newidx++]; if (!srv->maxconn || srv->cur_sess < srv_dynamic_maxconn(srv)) {