Fix from Alfred Perlstein
authorSam Lantinga <slouken@libsdl.org>
Fri, 12 Nov 2004 21:24:46 +0000
changeset 965 b68e551205e9
parent 964 d9209754ebee
child 966 f72cc0c7305f
Fix from Alfred Perlstein
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++) {