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? */