From 5d5fcc7198ca54fa9dc24fe974763eff9fddabee Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 29 Feb 2008 16:42:04 -0500 Subject: [PATCH] Bug #10464: Set pixel value to 0 before FindColor() --- dix/colormap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dix/colormap.c b/dix/colormap.c index c4c8c8bfe..8b1bad8a3 100644 --- a/dix/colormap.c +++ b/dix/colormap.c @@ -1006,6 +1006,7 @@ FakeAllocColor (ColormapPtr pmap, xColorItem *item) switch (class) { case GrayScale: case PseudoColor: + temp = 0; item->pixel = 0; if (FindColor(pmap, pmap->red, entries, &rgb, &temp, PSEUDOMAP, -1, AllComp) == Success) {