src/joystick/bsd/SDL_sysjoystick.c
changeset 965 b68e551205e9
parent 776 18922ae3ee07
child 1185 58538e140e2d
--- 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++) {