Fix from Alfred Perlstein
authorSam Lantinga <slouken@libsdl.org>
Fri, 12 Nov 2004 21:24:46 +0000
changeset 965b68e551205e9
parent 964 d9209754ebee
child 966 f72cc0c7305f
Fix from Alfred Perlstein
src/joystick/bsd/SDL_sysjoystick.c
     1.1 --- a/src/joystick/bsd/SDL_sysjoystick.c	Sat Nov 06 08:56:23 2004 +0000
     1.2 +++ b/src/joystick/bsd/SDL_sysjoystick.c	Fri Nov 12 21:24:46 2004 +0000
     1.3 @@ -160,6 +160,7 @@
     1.4  			SDL_numjoysticks++;
     1.5  		} else {
     1.6  			free(joynames[nj.index]);
     1.7 +			joynames[nj.index] = NULL;
     1.8  		}
     1.9  	}
    1.10  	for (i = 0; i < MAX_JOY_JOYS; i++) {