Commit 2ec89c63 authored by Max Kellermann's avatar Max Kellermann

player_control: clear errored_song in clearPlayerError()

Without the player error code, it errored_song variable is not used, and should be cleared, to avoid invalid access in pc_song_deleted().
parent 76953a97
......@@ -149,7 +149,8 @@ enum player_state getPlayerState(void)
void clearPlayerError(void)
{
pc.error = 0;
pc.error = PLAYER_ERROR_NOERROR;
pc.errored_song = NULL;
}
enum player_error getPlayerError(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment