[PATCH] lib: zlib_inflate "r.base" uninitialized compile warnings

From: Kees Cook
Date: Sun Dec 25 2005 - 13:11:49 EST


Eliminates compile-time warnings from "r" being uninitialized.

Signed-of-by: Kees Cook <kees@xxxxxxxxxxx>

---

--- linux-2.6.15-rc7/lib/zlib_inflate/inftrees.c.orig 2005-12-25 09:51:01.000000000 -0800
+++ linux-2.6.15-rc7/lib/zlib_inflate/inftrees.c 2005-12-25 09:46:06.000000000 -0800
@@ -196,6 +196,7 @@ static int huft_build(
u[0] = NULL; /* just to keep compilers happy */
q = NULL; /* ditto */
z = 0; /* ditto */
+ r.word.pad = r.base = 0; /* ditto */

/* go through the bit lengths (k already is bits in shortest code) */
for (; k <= g; k++)


--
Kees Cook @outflux.net
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/