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().
This commit is contained in:
parent
a86f9b8035
commit
d657be33ba
@ -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<songlen_data_size; i++)
|
||||
if(songlen_data[i]==';') songlen_data[i]='#';
|
||||
|
Loading…
Reference in New Issue
Block a user