src/haptic/SDL_haptic.c
branchgsoc2008_force_feedback
changeset 2524 1a55848ce198
parent 2523 366d84fdf8d1
child 2526 2d88b82ce781
     1.1 --- a/src/haptic/SDL_haptic.c	Thu Jul 17 11:47:48 2008 +0000
     1.2 +++ b/src/haptic/SDL_haptic.c	Thu Jul 17 16:07:20 2008 +0000
     1.3 @@ -274,7 +274,7 @@
     1.4     }
     1.5  
     1.6     /* Initialize the haptic device */
     1.7 -   SDL_memset(haptic, 0, (sizeof *haptic));
     1.8 +   SDL_memset(haptic, 0, sizeof(SDL_Haptic));
     1.9     if (SDL_SYS_HapticOpenFromJoystick(haptic,joystick) < 0) {
    1.10        SDL_free(haptic);
    1.11        return NULL;