Messages in this thread Patch in this message | | | Date | Sun, 25 Dec 2005 10:07:58 -0800 | From | Kees Cook <> | Subject | [PATCH] lib: zlib_inflate "r.base" uninitialized compile warnings |
| |
Eliminates compile-time warnings from "r" being uninitialized.
Signed-of-by: Kees Cook <kees@outflux.net>
---
--- 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |