BUG/MINOR: prevent the dump of uninitialized vars

Some vars are not initialized when the dumps of variables
are called. This patch prevent the dereferencement of
uninitialized pointers.
This commit is contained in:
Thierry Fournier 2016-03-25 08:43:46 +01:00 committed by Willy Tarreau
parent 85dc1d3995
commit ac9d467c5e

View File

@ -4107,6 +4107,9 @@ static int stats_dump_li_stats(struct stream_interface *si, struct proxy *px, st
struct appctx *appctx = __objt_appctx(si->end);
struct chunk *out = get_trash_chunk();
if (!l->counters)
return 0;
chunk_reset(out);
memset(&stats, 0, sizeof(stats));