Make static analysis happy.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 19 Mar 2015 23:44:47 -0400
changeset 940522d4e4b5a5e5
parent 9404 f48039db971c
child 9406 3547065d936d
Make static analysis happy.
src/audio/SDL_audio.c
     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);