fix uninitialized data

This commit is contained in:
Josh Coalson 2002-12-28 07:06:38 +00:00
parent 8825c571e3
commit 45062b840e

View File

@ -434,6 +434,9 @@ static FLAC__bool test_level_1_()
FLAC__byte data[1000];
unsigned our_current_position = 0;
/* initialize 'data' to avoid Valgrind errors */
memset(data, 0, sizeof(data));
printf("\n\n++++++ testing level 1 interface\n");
/************************************************************/
@ -1092,6 +1095,9 @@ static FLAC__bool test_level_2_()
FLAC__byte data[2000];
unsigned our_current_position;
/* initialize 'data' to avoid Valgrind errors */
memset(data, 0, sizeof(data));
printf("\n\n++++++ testing level 2 interface\n");
printf("generate read-only file\n");