소스 검색

Whoops, fix the static analysis fix.

Ryan C. Gordon 10 년 전
부모
커밋
59f69f6317
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/haptic/darwin/SDL_syshaptic.c

+ 1 - 1
src/haptic/darwin/SDL_syshaptic.c

@@ -911,8 +911,8 @@ SDL_SYS_ToFFEFFECT(SDL_Haptic * haptic, FFEFFECT * dest, SDL_HapticEffect * src)
     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();