Fix uninitialized variable warning

This also set a cursor pixelvalue to RED to visually
indicate error while parsing the cursor.
This commit is contained in:
Henrik Andersson 2017-10-17 10:16:07 +02:00
parent 7a81f7eae2
commit f50e17ba9f

3
xwin.c
View File

@ -2925,6 +2925,9 @@ get_pixel(uint32 idx, uint8 * andmask, uint8 * xormask, int bpp, uint8 * xor_fla
uint8 *pxor;
*xor_flag = 0;
/* return a red pixel if bpp is not supported to signal failure */
argb = 0xffff0000;
switch (bpp)
{
case 1: