From 1f3df900f919e7177e480e63c07447db232564a1 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Wed, 28 Apr 2021 23:40:26 +0200 Subject: [PATCH] Error missing 'flags' initialization (see bug #2881) --- src/video/SDL_RLEaccel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video/SDL_RLEaccel.c b/src/video/SDL_RLEaccel.c index 3f3b62cec..1d94443fc 100644 --- a/src/video/SDL_RLEaccel.c +++ b/src/video/SDL_RLEaccel.c @@ -1423,6 +1423,7 @@ SDL_RLESurface(SDL_Surface * surface) return -1; } + flags = surface->map->info.flags; if (flags & SDL_COPY_COLORKEY) { /* ok */ } else if ((flags & SDL_COPY_BLEND) && surface->format->Amask) {