From 3b02309347b38cdbc2e691ad2b53f634f714b9ea Mon Sep 17 00:00:00 2001 From: James Zern Date: Thu, 2 Aug 2012 17:14:51 -0700 Subject: [PATCH] silence one more warning inadvertently added in last warning roundup Change-Id: I38e6bcfb18c133f2dc2b38cec81e12d2ff556011 --- src/enc/alpha.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/enc/alpha.c b/src/enc/alpha.c index 2b36733c..0e519b6c 100644 --- a/src/enc/alpha.c +++ b/src/enc/alpha.c @@ -234,8 +234,10 @@ static int EncodeAlpha(VP8Encoder* const enc, // Try the other mode(s). { - WebPAuxStats best_stats = { 0 }; + WebPAuxStats best_stats; size_t best_score = VP8BitWriterSize(&bw); + + memset(&best_stats, 0, sizeof(best_stats)); // prevent spurious warning if (pic->stats != NULL) best_stats = *pic->stats; for (test_filter = WEBP_FILTER_HORIZONTAL; ok && (test_filter <= WEBP_FILTER_GRADIENT);