From 330612ea5cc74dad9e7153e9a9b1522ab3b2f7a1 Mon Sep 17 00:00:00 2001 From: Stephen Crowley Date: Thu, 10 Dec 1998 09:50:35 +0000 Subject: [PATCH] Fixed a potential crash if a usable video mode is not detected. --- graphics/ddraw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphics/ddraw.c b/graphics/ddraw.c index fd84d10202b..46260a74b2c 100644 --- a/graphics/ddraw.c +++ b/graphics/ddraw.c @@ -1995,7 +1995,7 @@ static HRESULT WINAPI DGA_IDirectDraw_SetDisplayMode( #ifdef HAVE_LIBXXF86VM { - XF86VidModeModeInfo **all_modes, *vidmode; + XF86VidModeModeInfo **all_modes, *vidmode = NULL; /* set fullscreen mode */ /* do we need to save the old video mode and restore it when we exit? */ -- 2.11.4.GIT