mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 10:07:38 -04:00
plugins: playing time: fix possible stack overflow
Change-Id: Ieb38e84e8c4126741d4630de3594fd16a360d1ed
This commit is contained in:
parent
eb03c7b4d0
commit
ebe961a2a8
1 changed files with 2 additions and 2 deletions
|
@ -418,8 +418,8 @@ static void pt_store_converted_totals(struct playing_time_info *pti)
|
|||
|
||||
static int pt_add_track(int i, enum ePT_SUM section, struct playing_time_info *pti)
|
||||
{
|
||||
struct mp3entry id3;
|
||||
struct playlist_track_info pl_track;
|
||||
static struct mp3entry id3;
|
||||
static struct playlist_track_info pl_track;
|
||||
int progress_total = pti->remaining_only ?
|
||||
(pti->nb_tracks - pti->curr_display_index) + 1 :
|
||||
pti->nb_tracks;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue