Skip to content

Commit

Permalink
SDL_JoystickInit: If malloc() fails, pretend no joysticks were detected.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 13, 2003
1 parent 688bb31 commit 689ec1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/SDL_joystick.c
Expand Up @@ -63,8 +63,8 @@ int SDL_JoystickInit(void)
SDL_numjoysticks = 0;
} else {
memset(SDL_joysticks, 0, arraylen);
SDL_numjoysticks = status;
}
SDL_numjoysticks = status;
status = 0;
}
default_joystick = NULL;
Expand Down

0 comments on commit 689ec1f

Please sign in to comment.