From 6086c344dcc0b8ec067a89193f900540dacec263 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 17 Dec 2014 10:57:35 -0800 Subject: [PATCH] Assert that there's a buffer for mixing For Clang's static analysis. --- Alc/mixer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Alc/mixer.c b/Alc/mixer.c index 87d94fff..bce9b14f 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -242,6 +242,7 @@ ALvoid MixSource(ALvoice *voice, ALsource *Source, ALCdevice *Device, ALuint Sam } BufferListItem = BufferListItem->next; } + assert(BufferListItem != NULL); IrSize = (Device->Hrtf ? GetHrtfIrSize(Device->Hrtf) : 0); -- 2.11.4.GIT