[MINOR] silent gcc for a wrong warning

gcc believes that avoididx may be used uninitialized, which is wrong.
This commit is contained in:
Willy Tarreau 2008-03-04 06:38:57 +01:00
parent 2c6962c3c0
commit f863ac152a

View File

@ -66,6 +66,7 @@ static inline struct server *get_server_rr_with_conns(struct proxy *px, struct s
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)) {