mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-05-09 19:28:02 +00:00
BUILD: stats: let gcc know that last_fwd cannot be used uninitialized...
OK, for once it cannot easily know this one, and certain versions are emitting this harmless warning : src/dumpstats.c: In function 'http_stats_io_handler': src/dumpstats.c:4507:19: warning: 'last_fwd' may be used uninitialized in this function [-Wmaybe-uninitialized]
This commit is contained in:
parent
628c40cd96
commit
cce3648e89
@ -4462,7 +4462,7 @@ static void http_stats_io_handler(struct stream_interface *si)
|
||||
unsigned int prev_len = si->ib->buf->i;
|
||||
unsigned int data_len;
|
||||
unsigned int last_len;
|
||||
unsigned int last_fwd;
|
||||
unsigned int last_fwd = 0;
|
||||
|
||||
if (appctx->ctx.stats.flags & STAT_CHUNKED) {
|
||||
/* One difficulty we're facing is that we must prevent
|
||||
|
Loading…
Reference in New Issue
Block a user