From 4ba3098ecb471be486b665c7f8716645ba8e22c6 Mon Sep 17 00:00:00 2001 From: kyslov Date: Thu, 11 Apr 2019 16:11:34 -0700 Subject: Fix static analysis warnings With switching to clang-7.0.1 we got new warnings. With this change the warnings are back to 0 for all configurations (excluding warnings in third_party) BUG=webm:1616 Change-Id: I25ceb592c425394e8f14d333fb5680144f892213 --- tools/tiny_ssim.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools') diff --git a/tools/tiny_ssim.c b/tools/tiny_ssim.c index f62f7f57e..ff4634ade 100644 --- a/tools/tiny_ssim.c +++ b/tools/tiny_ssim.c @@ -326,6 +326,8 @@ int main(int argc, char *argv[]) { input_file_t in[2]; double peak = 255.0; + memset(in, 0, sizeof(in)); + if (argc < 2) { fprintf(stderr, "Usage: %s file1.{yuv|y4m} file2.{yuv|y4m}" -- cgit v1.2.3