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 <conrad@soundcloud.com>
This commit is contained in:
Conrad Hoffmann 2016-04-01 20:40:58 +02:00 committed by Willy Tarreau
parent 9f72a39f68
commit 692c9386db

View File

@ -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;
}