Code analysis annotations found a legitimate bug!
authorSam Lantinga <slouken@libsdl.org>
Thu, 05 Jun 2014 09:49:45 -0700
changeset 88302d74f0c59cc7
parent 8829 6ed74a27066a
child 8831 9326ec96c132
Code analysis annotations found a legitimate bug!
src/test/SDL_test_assert.c
     1.1 --- a/src/test/SDL_test_assert.c	Thu Jun 05 09:27:06 2014 -0700
     1.2 +++ b/src/test/SDL_test_assert.c	Thu Jun 05 09:49:45 2014 -0700
     1.3 @@ -46,7 +46,7 @@
     1.4   */
     1.5  void SDLTest_Assert(int assertCondition, SDL_PRINTF_FORMAT_STRING const char *assertDescription, ...)
     1.6  {
     1.7 -        va_list list;
     1.8 +    va_list list;
     1.9      char logMessage[SDLTEST_MAX_LOGMESSAGE_LENGTH];
    1.10  
    1.11      /* Print assert description into a buffer */
    1.12 @@ -56,7 +56,7 @@
    1.13      va_end(list);
    1.14  
    1.15      /* Log, then assert and break on failure */
    1.16 -    SDL_assert((SDLTest_AssertCheck(assertCondition, logMessage)));
    1.17 +    SDL_assert((SDLTest_AssertCheck(assertCondition, "%s", logMessage)));
    1.18  }
    1.19  
    1.20  /*