Fix crash of media player
This commit is contained in:
parent
7aaf3d0b6a
commit
400bd1b9f2
|
@ -123,7 +123,7 @@ static void get_lyrics_line(const char *lyrics, char *lyrics_line1, gboolean res
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lyrics_loaded)
|
if (lyrics_loaded && lyrics)
|
||||||
{
|
{
|
||||||
// Find the '\n'
|
// Find the '\n'
|
||||||
while (lyrics[end_pos] != '\n' && lyrics[end_pos] != '\0')
|
while (lyrics[end_pos] != '\n' && lyrics[end_pos] != '\0')
|
||||||
|
|
Loading…
Reference in New Issue