From 692c9386db9a5ddfae166c373ec2b5a7dde14a19 Mon Sep 17 00:00:00 2001 From: Conrad Hoffmann Date: Fri, 1 Apr 2016 20:40:58 +0200 Subject: [PATCH] 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 --- src/dumpstats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dumpstats.c b/src/dumpstats.c index 7e2a1d295..da26f80d7 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; }