From e42e88829864eecfc0d51af99abcebf85f389768 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sat, 15 Jul 2023 11:46:31 -1000 Subject: [PATCH] VIDEO: Initialize SDL_version structures that might not be completely set B. Scott Michel's run of clang memory sanitizer identified that some fields in these structures in some versions on some platforms. --- sim_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim_video.c b/sim_video.c index cfee9703..a306ad8d 100644 --- a/sim_video.c +++ b/sim_video.c @@ -2252,7 +2252,7 @@ return 0; const char *vid_version(void) { static char SDLVersion[160]; -SDL_version compiled, running; +SDL_version compiled = { 0}, running = { 0}; SDL_GetVersion(&running);