src/audio/SDL_audio.c
changeset 9405 22d4e4b5a5e5
parent 9404 f48039db971c
child 9410 e25530faeda0
     1.1 --- a/src/audio/SDL_audio.c	Thu Mar 19 23:39:53 2015 -0400
     1.2 +++ b/src/audio/SDL_audio.c	Thu Mar 19 23:44:47 2015 -0400
     1.3 @@ -1162,6 +1162,7 @@
     1.4      if (device->spec.size > stream_len) {
     1.5          stream_len = device->spec.size;
     1.6      }
     1.7 +    SDL_assert(stream_len > 0);
     1.8      device->fake_stream = (Uint8 *)SDL_AllocAudioMem(stream_len);
     1.9      if (device->fake_stream == NULL) {
    1.10          close_audio_device(device);