Assert code's stdio interface was reading from the wrong variable.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 03 Jun 2011 16:03:10 -0400
changeset 55474ccecd0901e2
parent 5546 cd2167525827
child 5548 8f0abb6ef37d
Assert code's stdio interface was reading from the wrong variable.

Thanks to Frank Zago for the catch.
src/SDL_assert.c
     1.1 --- a/src/SDL_assert.c	Fri Apr 22 09:06:29 2011 -0700
     1.2 +++ b/src/SDL_assert.c	Fri Jun 03 16:03:10 2011 -0400
     1.3 @@ -337,16 +337,16 @@
     1.4          if (SDL_strcmp(buf, "a") == 0) {
     1.5              state = SDL_ASSERTION_ABORT;
     1.6              break;
     1.7 -        } else if (SDL_strcmp(envr, "b") == 0) {
     1.8 +        } else if (SDL_strcmp(buf, "b") == 0) {
     1.9              state = SDL_ASSERTION_BREAK;
    1.10              break;
    1.11 -        } else if (SDL_strcmp(envr, "r") == 0) {
    1.12 +        } else if (SDL_strcmp(buf, "r") == 0) {
    1.13              state = SDL_ASSERTION_RETRY;
    1.14              break;
    1.15 -        } else if (SDL_strcmp(envr, "i") == 0) {
    1.16 +        } else if (SDL_strcmp(buf, "i") == 0) {
    1.17              state = SDL_ASSERTION_IGNORE;
    1.18              break;
    1.19 -        } else if (SDL_strcmp(envr, "A") == 0) {
    1.20 +        } else if (SDL_strcmp(buf, "A") == 0) {
    1.21              state = SDL_ASSERTION_ALWAYS_IGNORE;
    1.22              break;
    1.23          }