# HG changeset patch # User Ryan C. Gordon # Date 1063419632 0 # Node ID f25e3334d5834f938e2d1f43f4b0d4f739f3d921 # Parent de0351c47596e29cb0b67eacabac8d3e4a2dfda8 SDL_JoystickInit: If malloc() fails, pretend no joysticks were detected. diff -r de0351c47596 -r f25e3334d583 src/joystick/SDL_joystick.c --- a/src/joystick/SDL_joystick.c Fri Sep 05 15:20:47 2003 +0000 +++ b/src/joystick/SDL_joystick.c Sat Sep 13 02:20:32 2003 +0000 @@ -63,8 +63,8 @@ SDL_numjoysticks = 0; } else { memset(SDL_joysticks, 0, arraylen); + SDL_numjoysticks = status; } - SDL_numjoysticks = status; status = 0; } default_joystick = NULL;