summaryrefslogtreecommitdiffstats
path: root/apps/cuesheet.c
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2007-03-21 23:35:26 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2007-03-21 23:35:26 +0000
commit81cad7db4617dfaabf324e2f92fae2181911557b (patch)
tree08279434616cd3b9617bdb67e2a135934719c770 /apps/cuesheet.c
parent55392f7d3c00b180e06da16efab53e4e8a79d28c (diff)
downloadrockbox-81cad7db4617dfaabf324e2f92fae2181911557b.tar.gz
rockbox-81cad7db4617dfaabf324e2f92fae2181911557b.tar.bz2
rockbox-81cad7db4617dfaabf324e2f92fae2181911557b.zip
Further error checking that I shouldn't have forgotten earlier.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12883 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/cuesheet.c')
-rw-r--r--apps/cuesheet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/cuesheet.c b/apps/cuesheet.c
index b05ff2493b..3cfab6536f 100644
--- a/apps/cuesheet.c
+++ b/apps/cuesheet.c
@@ -275,7 +275,7 @@ static void browse_cuesheet(struct cuesheet *cue)
{
case ACTION_STD_OK:
id3 = audio_current_track();
- if (strcmp(id3->path, "No file!"))
+ if (id3 && *id3->path && strcmp(id3->path, "No file!"))
{
strncpy(cuepath, id3->path, MAX_PATH);
dot = strrchr(cuepath, '.');