From d88369c62e20083d42befda7e9ec9e1eac61ba71 Mon Sep 17 00:00:00 2001 From: Mike Swanson Date: Sun, 19 Oct 2014 12:48:02 -0700 Subject: i_video: fix an if condition in my previous commit `else if (f == 'w')` doesn't really secure itself against uninitialized memory, it still needs to test that `s == 3`. --- src/i_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/i_video.c b/src/i_video.c index b7175db3..242f3ac5 100644 --- a/src/i_video.c +++ b/src/i_video.c @@ -1714,7 +1714,7 @@ void I_GraphicsCheckCommandLine(void) { fullscreen = true; } - else if (f == 'w') + else if (s == 3 && f == 'w') { fullscreen = false; } -- cgit v1.2.3