* Don't populate the album field if it's empty.

This commit is contained in:
Justin Maggard 2009-05-11 00:29:04 +00:00
parent 81a5517060
commit 1b051af5fb

View File

@ -194,7 +194,8 @@ vc_scan(struct song_metadata *psong, const char *comment, const size_t length)
// PARTNUMBER, GENRE, DATE, LOCATION, COMMENT
if(!strncasecmp(strbuf, "ALBUM=", 6))
{
psong->album = strdup(strbuf + 6);
if( *(strbuf+6) )
psong->album = strdup(strbuf + 6);
}
else if(!strncasecmp(strbuf, "ARTIST=", 7))
{