From d3de6d65ec79b30e6e93ff59f549feb898c58a30 Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Sat, 3 Sep 2011 19:12:33 +0000 Subject: Fix compiler warnings in mikmod. Initialize 'status' and 'incnt'. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30422 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/mikmod/sloader.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/plugins/mikmod') diff --git a/apps/plugins/mikmod/sloader.c b/apps/plugins/mikmod/sloader.c index 8b15b0d453..8c1070cba1 100644 --- a/apps/plugins/mikmod/sloader.c +++ b/apps/plugins/mikmod/sloader.c @@ -230,7 +230,10 @@ static int SL_LoadInternal(void* buffer,UWORD infmt,UWORD outfmt,int scalefactor int result,c_block=0; /* compression bytes until next block */ ITPACK status; - UWORD incnt; + UWORD incnt = 0; + + memset(&status, 0, sizeof(status)); /* initialize status */ + while(length) { stodo=(length