From a1a98c2691861e5ad3b500434d100cdcefceb0ef Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Fri, 29 Sep 2017 16:29:54 -0700 Subject: [PATCH] Handle uninitialized variable in case of non-matching extensions. --- src/meta/ps2_rxws.c | 2 +- src/meta/sgxd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/meta/ps2_rxws.c b/src/meta/ps2_rxws.c index 93701d59..862bfc53 100644 --- a/src/meta/ps2_rxws.c +++ b/src/meta/ps2_rxws.c @@ -8,7 +8,7 @@ VGMSTREAM * init_vgmstream_ps2_rxws(STREAMFILE *streamFile) { STREAMFILE * streamHeader = NULL; off_t start_offset, chunk_offset, name_offset = 0; size_t data_size, chunk_size; - int loop_flag = 0, channel_count, is_separate, type, sample_rate; + int loop_flag = 0, channel_count, is_separate = false, type, sample_rate; int32_t loop_start, loop_end; int total_streams, target_stream = streamFile->stream_index; diff --git a/src/meta/sgxd.c b/src/meta/sgxd.c index e31ac99d..e820718b 100644 --- a/src/meta/sgxd.c +++ b/src/meta/sgxd.c @@ -11,7 +11,7 @@ VGMSTREAM * init_vgmstream_sgxd(STREAMFILE *streamFile) { off_t start_offset, data_offset, chunk_offset, name_offset = 0; size_t data_size; - int is_sgx, is_sgb; + int is_sgx, is_sgb = false; int loop_flag, channels, type; int sample_rate, num_samples, loop_start_sample, loop_end_sample; int total_streams, target_stream = streamFile->stream_index;