Commit 590a060f authored by Ryan C. Gordon's avatar Ryan C. Gordon

Assert code's stdio interface was reading from the wrong variable.

Thanks to Frank Zago for the catch.
parent b6227343
...@@ -337,16 +337,16 @@ SDL_PromptAssertion(const SDL_assert_data *data, void *userdata) ...@@ -337,16 +337,16 @@ SDL_PromptAssertion(const SDL_assert_data *data, void *userdata)
if (SDL_strcmp(buf, "a") == 0) { if (SDL_strcmp(buf, "a") == 0) {
state = SDL_ASSERTION_ABORT; state = SDL_ASSERTION_ABORT;
break; break;
} else if (SDL_strcmp(envr, "b") == 0) { } else if (SDL_strcmp(buf, "b") == 0) {
state = SDL_ASSERTION_BREAK; state = SDL_ASSERTION_BREAK;
break; break;
} else if (SDL_strcmp(envr, "r") == 0) { } else if (SDL_strcmp(buf, "r") == 0) {
state = SDL_ASSERTION_RETRY; state = SDL_ASSERTION_RETRY;
break; break;
} else if (SDL_strcmp(envr, "i") == 0) { } else if (SDL_strcmp(buf, "i") == 0) {
state = SDL_ASSERTION_IGNORE; state = SDL_ASSERTION_IGNORE;
break; break;
} else if (SDL_strcmp(envr, "A") == 0) { } else if (SDL_strcmp(buf, "A") == 0) {
state = SDL_ASSERTION_ALWAYS_IGNORE; state = SDL_ASSERTION_ALWAYS_IGNORE;
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment