SDL: Emscripten_SetWindowFullscreen: Fix crash due to uninitialized EmscriptenFullscreenStrategy members

From 7b74e2eeb8f435b1beba5945ad605b7b0942f8fb Mon Sep 17 00:00:00 2001
From: pastdue <[EMAIL REDACTED]>
Date: Tue, 6 Feb 2024 17:59:51 -0500
Subject: [PATCH] Emscripten_SetWindowFullscreen: Fix crash due to
 uninitialized EmscriptenFullscreenStrategy members

---
 src/video/emscripten/SDL_emscriptenvideo.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/video/emscripten/SDL_emscriptenvideo.c b/src/video/emscripten/SDL_emscriptenvideo.c
index 626a50239a88..a7b9aa68e8ee 100644
--- a/src/video/emscripten/SDL_emscriptenvideo.c
+++ b/src/video/emscripten/SDL_emscriptenvideo.c
@@ -299,6 +299,7 @@ static int Emscripten_SetWindowFullscreen(SDL_VideoDevice *_this, SDL_Window *wi
             EmscriptenFullscreenStrategy strategy;
             SDL_bool is_fullscreen_desktop = !window->fullscreen_exclusive;
 
+            SDL_zero(strategy);
             strategy.scaleMode = is_fullscreen_desktop ? EMSCRIPTEN_FULLSCREEN_SCALE_STRETCH : EMSCRIPTEN_FULLSCREEN_SCALE_ASPECT;
 
             if (!is_fullscreen_desktop) {