Skip to content
Permalink
Browse files

Whoops, fix the static analysis fix.

  • Loading branch information
icculus committed May 26, 2015
1 parent d1980b9 commit 59f69f6317adf23ec49eef55631e36229f94435d
Showing with 1 addition and 1 deletion.
  1. +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();

0 comments on commit 59f69f6

Please sign in to comment.