load_aiff.c
changeset 142 59564a17ae18
parent 140 efa15d2a5403
child 216 b813303a6119
     1.1 --- a/load_aiff.c	Fri Dec 14 14:59:08 2001 +0000
     1.2 +++ b/load_aiff.c	Mon Dec 17 02:39:12 2001 +0000
     1.3 @@ -26,8 +26,10 @@
     1.4  
     1.5  /* $Id$ */
     1.6  
     1.7 +#include <stdlib.h>
     1.8  #include <string.h>
     1.9  
    1.10 +#include "SDL_endian.h"
    1.11  #include "SDL_mixer.h"
    1.12  #include "load_aiff.h"
    1.13  
    1.14 @@ -62,7 +64,7 @@
    1.15  	int was_error;
    1.16  	int found_SSND;
    1.17  	int found_COMM;
    1.18 -	long start;
    1.19 +	long start = 0;
    1.20  
    1.21  	Uint32 chunk_type;
    1.22  	Uint32 chunk_length;
    1.23 @@ -77,11 +79,11 @@
    1.24  	Uint32 blocksize;
    1.25  
    1.26  	/* COMM format chunk */
    1.27 -	Uint16 channels;
    1.28 -	Uint32 numsamples;
    1.29 -	Uint16 samplesize;
    1.30 +	Uint16 channels = 0;
    1.31 +	Uint32 numsamples = 0;
    1.32 +	Uint16 samplesize = 0;
    1.33  	Uint8 sane_freq[10];
    1.34 -	Uint32 frequency;
    1.35 +	Uint32 frequency = 0;
    1.36  
    1.37  	/* Make sure we are passed a valid data source */
    1.38  	was_error = 0;