Fixed uninitialized variable in some cases
authorSam Lantinga <slouken@libsdl.org>
Sun, 27 Jul 2014 17:43:36 -0700
changeset 9014 795fb603eda8
parent 9012 aa058c87737b
child 9015 45f11ff360a8
Fixed uninitialized variable in some cases
src/render/software/SDL_draw.h
--- a/src/render/software/SDL_draw.h	Tue Jul 22 21:41:49 2014 -0400
+++ b/src/render/software/SDL_draw.h	Sun Jul 27 17:43:36 2014 -0700
@@ -51,7 +51,7 @@
 
 #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; \