aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/mikmod_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-12-14 23:20:14 +0100
committerMax Kellermann <max@duempel.org>2009-12-14 23:20:14 +0100
commit849d7895dca3cc86212217fb57ab3d426eff50e7 (patch)
treec15f96a432261504aa4535ff70ccc8535ae33b45 /src/decoder/mikmod_plugin.c
parent850e2132611058454928be629b329fbb1992c461 (diff)
downloadmpd-849d7895dca3cc86212217fb57ab3d426eff50e7.tar.gz
mpd-849d7895dca3cc86212217fb57ab3d426eff50e7.tar.xz
mpd-849d7895dca3cc86212217fb57ab3d426eff50e7.zip
decoder/mikmod: fixed gcc uninitialized warning
Removed local variable "sample_rate".
Diffstat (limited to 'src/decoder/mikmod_plugin.c')
-rw-r--r--src/decoder/mikmod_plugin.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/decoder/mikmod_plugin.c b/src/decoder/mikmod_plugin.c
index 1e64aeffd..2185fe21c 100644
--- a/src/decoder/mikmod_plugin.c
+++ b/src/decoder/mikmod_plugin.c
@@ -105,14 +105,13 @@ static unsigned mikmod_sample_rate;
static bool
mikmod_decoder_init(const struct config_param *param)
{
- unsigned sample_rate;
static char params[] = "";
mikmod_sample_rate = config_get_block_unsigned(param, "sample_rate",
44100);
if (!audio_valid_sample_rate(mikmod_sample_rate))
g_error("Invalid sample rate in line %d: %u",
- param->line, sample_rate);
+ param->line, mikmod_sample_rate);
md_device = 0;
md_reverb = 0;