From 2f7b885df954c130252e1a98b49ea0a7013c1dec Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Mon, 28 Feb 2022 16:30:34 +0000 Subject: [PATCH] Fix 'potentially uninitialized local pointer variable' error in UWP builds --- src/video/SDL_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index 9236a06f2..33cde9bcc 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -2452,7 +2452,7 @@ static SDL_Surface * SDL_CreateWindowFramebuffer(SDL_Window * window) { Uint32 format; - void *pixels; + void *pixels = NULL; int pitch; int bpp; Uint32 Rmask, Gmask, Bmask, Amask;