From 2e715ef70d73be38050464c53d89b0aabd150196 Mon Sep 17 00:00:00 2001
From: Lioncash <mathew1800@gmail.com>
Date: Tue, 14 Aug 2018 19:36:13 -0400
Subject: [PATCH] emu_window: Ensure WindowConfig members are always
 initialized

Previously we weren't always initializing all members of the struct.
Prevents potentially wonky behavior from occurring.
---
 src/core/frontend/emu_window.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/core/frontend/emu_window.h b/src/core/frontend/emu_window.h
index 384dc7822b..7006a37b3e 100644
--- a/src/core/frontend/emu_window.h
+++ b/src/core/frontend/emu_window.h
@@ -34,9 +34,9 @@ class EmuWindow {
 public:
     /// Data structure to store emuwindow configuration
     struct WindowConfig {
-        bool fullscreen;
-        int res_width;
-        int res_height;
+        bool fullscreen = false;
+        int res_width = 0;
+        int res_height = 0;
         std::pair<unsigned, unsigned> min_client_area_size;
     };
 
-- 
GitLab