1
0
Fork 0
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:
Magnus Holmgren 2009-07-23 15:20:18 +00:00
parent c77eae99a3
commit 06d51630c1

View file

@ -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 ?