# HG changeset patch # User Sam Lantinga # Date 1100294686 0 # Node ID b68e551205e925f3c6d77158ee03c80a75cf7060 # Parent d9209754ebee908509d2ae4d6a83f787a5c9e5e7 Fix from Alfred Perlstein diff -r d9209754ebee -r b68e551205e9 src/joystick/bsd/SDL_sysjoystick.c --- a/src/joystick/bsd/SDL_sysjoystick.c Sat Nov 06 08:56:23 2004 +0000 +++ b/src/joystick/bsd/SDL_sysjoystick.c Fri Nov 12 21:24:46 2004 +0000 @@ -160,6 +160,7 @@ SDL_numjoysticks++; } else { free(joynames[nj.index]); + joynames[nj.index] = NULL; } } for (i = 0; i < MAX_JOY_JOYS; i++) {