diff options
| author | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-03-21 23:35:26 +0000 |
|---|---|---|
| committer | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-03-21 23:35:26 +0000 |
| commit | 81cad7db4617dfaabf324e2f92fae2181911557b (patch) | |
| tree | 08279434616cd3b9617bdb67e2a135934719c770 /apps/cuesheet.c | |
| parent | 55392f7d3c00b180e06da16efab53e4e8a79d28c (diff) | |
| download | rockbox-81cad7db4617dfaabf324e2f92fae2181911557b.zip rockbox-81cad7db4617dfaabf324e2f92fae2181911557b.tar.gz rockbox-81cad7db4617dfaabf324e2f92fae2181911557b.tar.bz2 rockbox-81cad7db4617dfaabf324e2f92fae2181911557b.tar.xz | |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/cuesheet.c b/apps/cuesheet.c index b05ff24..3cfab65 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, '.'); |