From d657be33baa1619cc488beadae3e48872548a7c7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 24 Sep 2009 10:04:24 +0200 Subject: decoder/sidplay: pass GError** to g_file_get_contents() The error handler dereferences GError*, but did not retrieve that object from g_file_get_contents(). --- src/decoder/sidplay_plugin.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/decoder') diff --git a/src/decoder/sidplay_plugin.cxx b/src/decoder/sidplay_plugin.cxx index 5228dbe89..84afd7add 100644 --- a/src/decoder/sidplay_plugin.cxx +++ b/src/decoder/sidplay_plugin.cxx @@ -52,7 +52,8 @@ sidplay_init(const struct config_param *param) songlength_file=config_get_block_string(param, "songlength_database", NULL); if(songlength_file) { - if(g_file_get_contents(songlength_file, &songlen_data, &songlen_data_size, NULL)) { + if (g_file_get_contents(songlength_file, &songlen_data, + &songlen_data_size, &err)) { /* replace any ; comment characters with # */ for(int i=0; i