diff --git a/test/testjoystick.c b/test/testjoystick.c index 39fd9c852..708ba5d82 100644 --- a/test/testjoystick.c +++ b/test/testjoystick.c @@ -237,6 +237,7 @@ main(int argc, char *argv[]) if (joystick == NULL) { if ( !reportederror ) { printf("Couldn't open joystick %d: %s\n", atoi(argv[1]), SDL_GetError()); + keepGoing = SDL_FALSE; reportederror = SDL_TRUE; } } else {