NULL check so it doesnt display (null) on the comment line

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24744 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2010-02-18 05:50:44 +00:00
parent c647e62c30
commit 55b21c104f

View file

@ -691,6 +691,8 @@ static const char* id3_get_info(int selected_item, void* data,
}
break;
case 7:/*LANG_ID3_COMMENT*/
if (!id3->comment)
return NULL;
snprintf(buffer, buffer_len, "%s", id3->comment);
val=buffer;
break;