diff options
author | Magnus Holmgren <magnushol@gmail.com> | 2009-07-23 15:20:18 +0000 |
---|---|---|
committer | Magnus Holmgren <magnushol@gmail.com> | 2009-07-23 15:20:18 +0000 |
commit | 06d51630c19b4d5d4933bb03d61f2d69cbb5454f (patch) | |
tree | aeaafe167b3f630acb48e27c1f8da6bc28a583ea | |
parent | c77eae99a36709e887dc9daf9341d6d1260cfa52 (diff) | |
download | rockbox-06d51630c19b4d5d4933bb03d61f2d69cbb5454f.tar.gz rockbox-06d51630c19b4d5d4933bb03d61f2d69cbb5454f.zip |
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
-rw-r--r-- | apps/gui/gwps-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index c4b0be1eb1..da70f0e451 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c | |||
@@ -355,7 +355,7 @@ bool gui_wps_update(struct gui_wps *gwps) | |||
355 | { | 355 | { |
356 | struct mp3entry *id3 = gwps->state->id3; | 356 | struct mp3entry *id3 = gwps->state->id3; |
357 | bool retval; | 357 | bool retval; |
358 | bool cuesheet_update = cuesheet_subtrack_changed(id3); | 358 | bool cuesheet_update = (id3 != NULL ? cuesheet_subtrack_changed(id3) : false); |
359 | gwps->state->do_full_update = cuesheet_update || gwps->state->do_full_update; | 359 | gwps->state->do_full_update = cuesheet_update || gwps->state->do_full_update; |
360 | retval = gui_wps_redraw(gwps, 0, | 360 | retval = gui_wps_redraw(gwps, 0, |
361 | gwps->state->do_full_update ? | 361 | gwps->state->do_full_update ? |