From 28e9533d343e697b8908d2f96aab53ed0c7eeb81 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 3 Aug 2025 13:40:12 -0400 Subject: [PATCH] SDL_enabled_assert(): Use `NULL` istead of `0` to explicity initialize the pointer members of SDL_AssertData (cherry picked from commit 272b0733237555c749bc6dd82a8dd0211ab2e22d) --- include/SDL_assert.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/SDL_assert.h b/include/SDL_assert.h index fea3f90f04..5d7e19ae7c 100644 --- a/include/SDL_assert.h +++ b/include/SDL_assert.h @@ -153,7 +153,7 @@ extern DECLSPEC SDL_AssertState SDLCALL SDL_ReportAssertion(SDL_AssertData *, #define SDL_enabled_assert(condition) \ do { \ while ( !(condition) ) { \ - static struct SDL_AssertData sdl_assert_data = { 0, 0, #condition, 0, 0, 0, 0 }; \ + static struct SDL_AssertData sdl_assert_data = { 0, 0, #condition, NULL, 0, NULL, NULL }; \ const SDL_AssertState sdl_assert_state = SDL_ReportAssertion(&sdl_assert_data, SDL_FUNCTION, SDL_FILE, SDL_LINE); \ if (sdl_assert_state == SDL_ASSERTION_RETRY) { \ continue; /* go again. */ \