From 5c6c86912d6bea66391ea7d8683d7ea8d54c2b66 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 27 Jul 2014 17:43:36 -0700 Subject: [PATCH] Fixed uninitialized variable in some cases --- src/render/software/SDL_draw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/software/SDL_draw.h b/src/render/software/SDL_draw.h index fff462e6d..2bd8f94c9 100644 --- a/src/render/software/SDL_draw.h +++ b/src/render/software/SDL_draw.h @@ -51,7 +51,7 @@ do { \ #define DRAW_SETPIXEL_BLEND(getpixel, setpixel) \ do { \ - unsigned sr, sg, sb, sa; \ + unsigned sr, sg, sb, sa = 0xFF; \ getpixel; \ sr = DRAW_MUL(inva, sr) + r; \ sg = DRAW_MUL(inva, sg) + g; \