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.
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;