summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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, '.');