# HG changeset patch # User reimar # Date 1278090336 0 # Node ID e2d6add92a7395f9e4ffc24471be197455811986 # Parent c70e2fd8f35d7ae53adfde342a1e1cb8990286d9 Fix use of unintialized variable introduced in r20411. diff -r c70e2fd8f35d -r e2d6add92a73 vorbis_dec.c --- a/vorbis_dec.c Fri Jul 02 15:57:56 2010 +0000 +++ b/vorbis_dec.c Fri Jul 02 17:05:36 2010 +0000 @@ -576,7 +576,8 @@ int idx; uint_fast8_t book_idx; for (idx = 0; idx < floor_setup->data.t0.num_books; ++idx) { - GET_VALIDATED_INDEX(floor_setup->data.t0.book_list[idx], 8, vc->codebook_count) + GET_VALIDATED_INDEX(book_idx, 8, vc->codebook_count) + floor_setup->data.t0.book_list[idx] = book_idx; if (vc->codebooks[book_idx].dimensions > max_codebook_dim) max_codebook_dim = vc->codebooks[book_idx].dimensions; }