diff --git a/src/audio/SDL_audiocvt.c b/src/audio/SDL_audiocvt.c index ee4f1289b..dc6fb0b7f 100644 --- a/src/audio/SDL_audiocvt.c +++ b/src/audio/SDL_audiocvt.c @@ -1836,7 +1836,7 @@ SDL_BuildAudioCVT(SDL_AudioCVT * cvt, #endif /* Start off with no conversion necessary */ - SDL_memset(cvt, '\0', sizeof (SDL_AudioCVT)); + SDL_zerop(cvt); cvt->src_format = src_fmt; cvt->dst_format = dst_fmt; cvt->needed = 0;