mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-02 19:42:41 +00:00
BUILD: compression: remove a build warning
gcc emits this warning while building free_zlib() : src/compression.c: In function `free_zlib': src/compression.c:403: warning: 'pool' might be used uninitialized in this function This is not a bug as the pool cannot take other values, but let's pre-initialize is to null to fix the warning.
This commit is contained in:
parent
d85f917daf
commit
b1fbd050ec
@ -400,7 +400,7 @@ end:
|
||||
static void free_zlib(void *opaque, void *ptr)
|
||||
{
|
||||
struct comp_ctx *ctx = opaque;
|
||||
struct pool_head *pool;
|
||||
struct pool_head *pool = NULL;
|
||||
|
||||
if (ptr == ctx->zlib_window)
|
||||
pool = zlib_pool_window;
|
||||
|
Loading…
Reference in New Issue
Block a user