Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make static analysis happy.
  • Loading branch information
icculus committed Mar 20, 2015
1 parent 277e07e commit b24ff44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/audio/SDL_audio.c
Expand Up @@ -1162,6 +1162,7 @@ open_audio_device(const char *devname, int iscapture,
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);
Expand Down

0 comments on commit b24ff44

Please sign in to comment.