mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-13 21:35:59 +00:00
Removed redundant NULL check in test program.
This commit is contained in:
@@ -294,10 +294,8 @@ main(int argc, char *argv[])
|
|||||||
while (keepGoing) {
|
while (keepGoing) {
|
||||||
if (gamecontroller == NULL) {
|
if (gamecontroller == NULL) {
|
||||||
if (!reportederror) {
|
if (!reportederror) {
|
||||||
if (gamecontroller == NULL) {
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't open gamecontroller %d: %s\n", device, SDL_GetError());
|
||||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't open gamecontroller %d: %s\n", device, SDL_GetError());
|
retcode = 1;
|
||||||
retcode = 1;
|
|
||||||
}
|
|
||||||
keepGoing = SDL_FALSE;
|
keepGoing = SDL_FALSE;
|
||||||
reportederror = SDL_TRUE;
|
reportederror = SDL_TRUE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user