Whoops, fix the static analysis fix.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 26 May 2015 16:14:25 -0400
changeset 96333e742dd2c13d
parent 9632 6ae6b0b46e78
child 9634 7e843b8b8301
Whoops, fix the static analysis fix.
src/haptic/darwin/SDL_syshaptic.c
     1.1 --- a/src/haptic/darwin/SDL_syshaptic.c	Tue May 26 12:52:28 2015 -0400
     1.2 +++ b/src/haptic/darwin/SDL_syshaptic.c	Tue May 26 16:14:25 2015 -0400
     1.3 @@ -911,8 +911,8 @@
     1.4      case SDL_HAPTIC_DAMPER:
     1.5      case SDL_HAPTIC_INERTIA:
     1.6      case SDL_HAPTIC_FRICTION:
     1.7 +        hap_condition = &src->condition;
     1.8          if (dest->cAxes > 0) {
     1.9 -            hap_condition = &src->condition;
    1.10              condition = SDL_malloc(sizeof(FFCONDITION) * dest->cAxes);
    1.11              if (condition == NULL) {
    1.12                  return SDL_OutOfMemory();