Skip to content

Commit

Permalink
Code analysis annotations found a legitimate bug!
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jun 5, 2014
1 parent d0146cf commit 6671aa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/SDL_test_assert.c
Expand Up @@ -46,7 +46,7 @@ static Uint32 SDLTest_AssertsPassed = 0;
*/
void SDLTest_Assert(int assertCondition, SDL_PRINTF_FORMAT_STRING const char *assertDescription, ...)
{
va_list list;
va_list list;
char logMessage[SDLTEST_MAX_LOGMESSAGE_LENGTH];

/* Print assert description into a buffer */
Expand All @@ -56,7 +56,7 @@ void SDLTest_Assert(int assertCondition, SDL_PRINTF_FORMAT_STRING const char *as
va_end(list);

/* Log, then assert and break on failure */
SDL_assert((SDLTest_AssertCheck(assertCondition, logMessage)));
SDL_assert((SDLTest_AssertCheck(assertCondition, "%s", logMessage)));
}

/*
Expand Down

0 comments on commit 6671aa2

Please sign in to comment.