From: Conrad Hoffmann Date: Fri, 1 Apr 2016 18:40:58 +0000 (+0200) Subject: BUG/MINOR: dumpstats: fix write to global chunk X-Git-Tag: v1.7-dev3~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=692c9386db9a5ddfae166c373ec2b5a7dde14a19;p=thirdparty%2Fhaproxy.git BUG/MINOR: dumpstats: fix write to global chunk This just happens to work as it is the correct chunk, but should be whatever gets passed in as argument. Signed-off-by: Conrad Hoffmann --- diff --git a/src/dumpstats.c b/src/dumpstats.c index 7e2a1d2958..da26f80d7f 100644 --- a/src/dumpstats.c +++ b/src/dumpstats.c @@ -3211,7 +3211,7 @@ static int stats_dump_fields_csv(struct chunk *out, const struct field *stats) if (!chunk_strcat(out, ",")) return 0; } - chunk_strcat(&trash, "\n"); + chunk_strcat(out, "\n"); return 1; }