From 9acd55ae4f9e455a92765aaee5929240097f9f8f Mon Sep 17 00:00:00 2001 From: garakmon Date: Sat, 16 Jun 2018 19:20:10 -0400 Subject: [PATCH] re-initializing structs in tools/aif2pcm/main.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit initializing all fields because clang doesn’t understand {0} --- tools/aif2pcm/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/aif2pcm/main.c b/tools/aif2pcm/main.c index b6287a1dd..51dbf1bb9 100644 --- a/tools/aif2pcm/main.c +++ b/tools/aif2pcm/main.c @@ -469,12 +469,12 @@ do { \ void aif2pcm(const char *aif_filename, const char *pcm_filename, bool compress) { struct Bytes *aif = read_bytearray(aif_filename); - AifData aif_data; + AifData aif_data = {0,0,0,0,0,0,0}; read_aif(aif, &aif_data); int header_size = 0x10; struct Bytes *pcm; - struct Bytes output; + struct Bytes output = {0,0}; if (compress) {