From b1fbd050ec57593391ad8c98f521a66b3fd85678 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sat, 10 Nov 2012 17:49:37 +0100 Subject: [PATCH] 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. --- src/compression.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compression.c b/src/compression.c index ae43cd375..983e77136 100644 --- a/src/compression.c +++ b/src/compression.c @@ -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;