From 81cad7db4617dfaabf324e2f92fae2181911557b Mon Sep 17 00:00:00 2001 From: Nicolas Pennequin Date: Wed, 21 Mar 2007 23:35:26 +0000 Subject: [PATCH] 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 --- apps/cuesheet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, '.');