Make static analysis happy.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 19 Mar 2015 23:44:47 -0400
changeset 9405 22d4e4b5a5e5
parent 9404 f48039db971c
child 9406 3547065d936d
Make static analysis happy.
src/audio/SDL_audio.c
--- a/src/audio/SDL_audio.c	Thu Mar 19 23:39:53 2015 -0400
+++ b/src/audio/SDL_audio.c	Thu Mar 19 23:44:47 2015 -0400
@@ -1162,6 +1162,7 @@
     if (device->spec.size > stream_len) {
         stream_len = device->spec.size;
     }
+    SDL_assert(stream_len > 0);
     device->fake_stream = (Uint8 *)SDL_AllocAudioMem(stream_len);
     if (device->fake_stream == NULL) {
         close_audio_device(device);