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:
parent
55392f7d3c
commit
81cad7db46
1 changed files with 1 additions and 1 deletions
|
|
@ -275,7 +275,7 @@ static void browse_cuesheet(struct cuesheet *cue)
|
||||||
{
|
{
|
||||||
case ACTION_STD_OK:
|
case ACTION_STD_OK:
|
||||||
id3 = audio_current_track();
|
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);
|
strncpy(cuepath, id3->path, MAX_PATH);
|
||||||
dot = strrchr(cuepath, '.');
|
dot = strrchr(cuepath, '.');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue