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