Skip to content

Commit faf3bd9

Browse files
Sackzementicculus
authored andcommitted
SDL_enabled_assert(): Use NULL istead of 0 to explicity initialize the pointer members of SDL_AssertData
1 parent 8dedf44 commit faf3bd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/SDL3/SDL_assert.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ extern SDL_DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *
362362
#define SDL_enabled_assert(condition) \
363363
do { \
364364
while ( !(condition) ) { \
365-
static struct SDL_AssertData sdl_assert_data = { 0, 0, #condition, 0, 0, 0, 0 }; \
365+
static struct SDL_AssertData sdl_assert_data = { false, 0, #condition, NULL, 0, NULL, NULL }; \
366366
const SDL_AssertState sdl_assert_state = SDL_ReportAssertion(&sdl_assert_data, SDL_FUNCTION, SDL_FILE, SDL_LINE); \
367367
if (sdl_assert_state == SDL_ASSERTION_RETRY) { \
368368
continue; /* go again. */ \

0 commit comments

Comments
 (0)