Fixed bug 4840 - Read of uninitialized memory in DXGI_LoadDLL (Thanks!)
diff --git a/src/video/windows/SDL_windowsvideo.c b/src/video/windows/SDL_windowsvideo.c
index 11bd23f..cba1ea5 100644
--- a/src/video/windows/SDL_windowsvideo.c
+++ b/src/video/windows/SDL_windowsvideo.c
@@ -386,7 +386,7 @@ SDL_DXGIGetOutputInfo(int displayIndex, int *adapterIndex, int *outputIndex)
void *pDXGIDLL;
char *displayName;
int nAdapter, nOutput;
- IDXGIFactory *pDXGIFactory;
+ IDXGIFactory *pDXGIFactory = NULL;
IDXGIAdapter *pDXGIAdapter;
IDXGIOutput* pDXGIOutput;