fix uninitialized data
This commit is contained in:
parent
8825c571e3
commit
45062b840e
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user