diff --git a/test/testhaptic.c b/test/testhaptic.c index 34da19f96..8e92da347 100644 --- a/test/testhaptic.c +++ b/test/testhaptic.c @@ -106,7 +106,7 @@ main(int argc, char **argv) SDL_ClearError(); /* Create effects. */ - SDL_memset(&efx, 0, sizeof(efx)); + SDL_memset(efx, 0, sizeof(efx)); nefx = 0; supported = SDL_HapticQuery(haptic);