1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Nicolas Pennequin 2007-03-21 23:35:26 +00:00
parent 55392f7d3c
commit 81cad7db46

View file

@ -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, '.');