Fix crash when playing back an .ogg with comment metadata that doesn't contain "=".

git-svn-id: https://svn.eduke32.com/eduke32@5260 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2015-06-04 00:03:55 +00:00
parent babb9d9d61
commit b5c5611270
1 changed files with 3 additions and 0 deletions

View File

@ -79,6 +79,9 @@ static void MV_GetVorbisCommentLoops(VoiceNode *voice, vorbis_comment *vc)
if (entry != NULL && entry[0] != '\0')
{
const char *value = strchr(entry,'=');
if (!value) continue;
const size_t field = value-entry;
value += 1;