1
0
mirror of https://github.com/simh/simh.git synced 2026-01-26 20:12:23 +00:00

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.
This commit is contained in:
Mark Pizzolato
2023-07-15 11:46:31 -10:00
parent 9cdfb0cae3
commit e42e888298

View File

@@ -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);