summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2007-03-28 19:55:41 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2007-03-28 19:55:41 +0000
commit8f3a37ceaae1a68e1ed218e88a0ee99b90889226 (patch)
treeee73b60cd19c3647ec9485d7c156e1cf4d302948 /apps
parent10e9dc617a1e9ab99c0d325bfee9700b598054fb (diff)
Fix the warning.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12950 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/cuesheet.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/cuesheet.c b/apps/cuesheet.c
index 8c8d62a0a4..abf92e1657 100644
--- a/apps/cuesheet.c
+++ b/apps/cuesheet.c
@@ -157,10 +157,8 @@ bool parse_cuesheet(char *file, struct cuesheet *cue)
|| !strncmp(s, "PERFORMER", 9)
|| !strncmp(s, "SONGWRITER", 10))
{
- char *dest;
- char *string;
-
- string = get_string(s);
+ char *dest = NULL;
+ char *string = get_string(s);
if (!string)
break;
@@ -179,6 +177,7 @@ bool parse_cuesheet(char *file, struct cuesheet *cue)
case 'S': /* SONGWRITER */
dest = (cue->track_count <= 0) ? NULL :
cue->tracks[cue->track_count-1].songwriter;
+ break;
}
if (dest)