Skip to content

Commit

Permalink
audio: another wrong struct that causes NULL pointer crash (thanks, S…
Browse files Browse the repository at this point in the history
…imon!).

Fixes Bugzilla #3632.
  • Loading branch information
icculus committed Apr 26, 2017
1 parent 1286a7d commit 226541c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/SDL_audio.c
Expand Up @@ -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);

Expand Down

0 comments on commit 226541c

Please sign in to comment.