forked from len0rd/rockbox
Fix possible null pointer dereference in cuesheet handling. Causes problems in the simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22015 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c77eae99a3
commit
06d51630c1
1 changed files with 1 additions and 1 deletions
|
|
@ -355,7 +355,7 @@ bool gui_wps_update(struct gui_wps *gwps)
|
|||
{
|
||||
struct mp3entry *id3 = gwps->state->id3;
|
||||
bool retval;
|
||||
bool cuesheet_update = cuesheet_subtrack_changed(id3);
|
||||
bool cuesheet_update = (id3 != NULL ? cuesheet_subtrack_changed(id3) : false);
|
||||
gwps->state->do_full_update = cuesheet_update || gwps->state->do_full_update;
|
||||
retval = gui_wps_redraw(gwps, 0,
|
||||
gwps->state->do_full_update ?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue