From 03cfef100fa90f81058a6fa8108ac1a4ff2a5fad Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 4 Dec 2014 21:28:40 +0100 Subject: decoder/sidplay: make "songlength_file" local --- src/decoder/plugins/SidplayDecoderPlugin.cxx | 3 +-- 1 file changed, 1 insertion(+), 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 ¶m) { /* 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); -- cgit v1.2.3