Skip to content
Permalink
Browse files

audio: another wrong struct that causes NULL pointer crash (thanks, S…

…imon!).

Fixes Bugzilla #3632.
  • Loading branch information
icculus committed Apr 26, 2017
1 parent 1286a7d commit 226541cb5b0d891e8475a52a6380bd1b2f327ce6
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/audio/SDL_audio.c
@@ -733,7 +733,7 @@ SDL_CaptureAudio(void *devicep)
const int data_len = device->spec.size;
Uint8 *data;
void *udata = device->spec.userdata;
SDL_AudioCallback callback = device->spec.callback;
SDL_AudioCallback callback = device->callbackspec.callback;

SDL_assert(device->iscapture);

0 comments on commit 226541c

Please sign in to comment.