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().
This commit is contained in:
parent
76953a9748
commit
2ec89c6304
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user