From 0278f1c0a34a4552bcdd1c68c765f52f30ee7f7f Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Thu, 5 Jul 2007 06:59:14 +0000 Subject: [PATCH] Quiet warnings. These do not appear to be actually used uninitialized, but gcc's optimizer isn't smart enough to see that. Pre-initializing seems harmless enough. Approved by: re (rwatson) --- sys/opencrypto/cast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/opencrypto/cast.c b/sys/opencrypto/cast.c index a16ab7d9fa4b..7474b3681f87 100644 --- a/sys/opencrypto/cast.c +++ b/sys/opencrypto/cast.c @@ -131,7 +131,7 @@ u_int32_t t, l, r; void cast_setkey(cast_key* key, u_int8_t* rawkey, int keybytes) { -u_int32_t t[4], z[4], x[4]; +u_int32_t t[4] = {0, 0, 0, 0}, z[4] = {0, 0, 0, 0}, x[4]; int i; /* Set number of rounds to 12 or 16, depending on key length */