]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: muxes: do not use a dynamic trash in list_mux_protos()
authorWilly Tarreau <w@1wt.eu>
Fri, 18 Feb 2022 10:07:40 +0000 (11:07 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Feb 2022 16:11:33 +0000 (17:11 +0100)
commitadd430623174f913ac08c727d01be0a40340adad
tree0f12219bc3df065ea436783f535bf6a0320c8261
parent5b4b6ca823241a4da8d4e32bf9986ae33f879879
CLEANUP: muxes: do not use a dynamic trash in list_mux_protos()

Let's not use a trash there anymore. The function is called at very
early boot (for "haproxy -vv"), and the need for a trash prevents the
arguments from being parsed earlier. Moreover, the function only uses
a FILE* on output with fprintf(), so there's not even any benefit in
using chunk_printf() on an intermediary variable, emitting the output
directly is both clearer and safer.
src/connection.c