From: Lukas Tribus Date: Wed, 11 Jan 2017 14:24:35 +0000 (+0000) Subject: MINOR: compression: fix -vv output without zlib/slz X-Git-Tag: v1.8-dev1~165 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b732321d03ea0bb3a27bf96fd353d12c1485a4bb;p=thirdparty%2Fhaproxy.git MINOR: compression: fix -vv output without zlib/slz When haproxy is compiled without zlib or slz, the output of haproxy -vv shows (null). Make haproxy -vv output great again by providing the proper information (which is what we did before). This is for 1.8 only. --- diff --git a/src/compression.c b/src/compression.c index 27ab7f785a..ecd2fa5a3c 100644 --- a/src/compression.c +++ b/src/compression.c @@ -696,6 +696,8 @@ static void __comp_fetch_init(void) memprintf(&ptr, "%s\nRunning on zlib version : %s", ptr, zlibVersion()); #elif defined(USE_SLZ) memprintf(&ptr, "Built with libslz for stateless compression."); +#else + memprintf(&ptr, "Built without compression support (neither USE_ZLIB nor USE_SLZ are set)."); #endif memprintf(&ptr, "%s\nCompression algorithms supported :", ptr);