]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: dumpstats: fix write to global chunk
authorConrad Hoffmann <conrad@soundcloud.com>
Fri, 1 Apr 2016 18:40:58 +0000 (20:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 5 Apr 2016 03:56:10 +0000 (05:56 +0200)
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>
src/dumpstats.c

index 7e2a1d2958a0cf5e4fe4c760651bff7ca25ad1ee..da26f80d7f32cda137db10861ca8ff5b854140a2 100644 (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;
 }