mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-01 13:52:09 +02:00
Prefer SDL_zero()/SDL_zerop()
Replace uses of 'SDL_memset(E, 0, sizeof(E))' and similar with the SDL_zero()/SDL_zerop() macros.
This commit is contained in:
committed by
Sam Lantinga
parent
fe403220f0
commit
83fb7b6636
@@ -1050,7 +1050,7 @@ bool SDL_DINPUT_HapticUpdateEffect(SDL_Haptic *haptic, struct haptic_effect *eff
|
||||
DIEFFECT temp;
|
||||
|
||||
// Get the effect.
|
||||
SDL_memset(&temp, 0, sizeof(DIEFFECT));
|
||||
SDL_zero(temp);
|
||||
if (!SDL_SYS_ToDIEFFECT(haptic, &temp, data)) {
|
||||
goto err_update;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user