aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/plugins/SidplayDecoderPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-04 21:28:40 +0100
committerMax Kellermann <max@duempel.org>2014-12-04 21:30:59 +0100
commit03cfef100fa90f81058a6fa8108ac1a4ff2a5fad (patch)
treee3eafe0a816d98c14ef7ed4b068abcaa20deead4 /src/decoder/plugins/SidplayDecoderPlugin.cxx
parentff89b491ddfec4b25aa26423818da9034adaa04a (diff)
downloadmpd-03cfef100fa90f81058a6fa8108ac1a4ff2a5fad.tar.gz
mpd-03cfef100fa90f81058a6fa8108ac1a4ff2a5fad.tar.xz
mpd-03cfef100fa90f81058a6fa8108ac1a4ff2a5fad.zip
decoder/sidplay: make "songlength_file" local
Diffstat (limited to 'src/decoder/plugins/SidplayDecoderPlugin.cxx')
-rw-r--r--src/decoder/plugins/SidplayDecoderPlugin.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/decoder/plugins/SidplayDecoderPlugin.cxx b/src/decoder/plugins/SidplayDecoderPlugin.cxx
index cd8dc395a..76510a200 100644
--- a/src/decoder/plugins/SidplayDecoderPlugin.cxx
+++ b/src/decoder/plugins/SidplayDecoderPlugin.cxx
@@ -41,7 +41,6 @@
static constexpr Domain sidplay_domain("sidplay");
-static const char *songlength_file;
static GKeyFile *songlength_database;
static bool all_files_are_containers;
@@ -90,7 +89,7 @@ static bool
sidplay_init(const config_param &param)
{
/* read the songlengths database file */
- songlength_file = param.GetBlockValue("songlength_database");
+ const char *songlength_file = param.GetBlockValue("songlength_database");
if (songlength_file != nullptr)
songlength_database = sidplay_load_songlength_db(songlength_file);