From b24ff44692ed601dce70120fd602afcd9ea25331 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 19 Mar 2015 23:44:47 -0400 Subject: [PATCH] Make static analysis happy. --- src/audio/SDL_audio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/audio/SDL_audio.c b/src/audio/SDL_audio.c index 60eb48134291a..d937c5af4a42e 100644 --- a/src/audio/SDL_audio.c +++ b/src/audio/SDL_audio.c @@ -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);