summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-02-29 16:42:04 -0500
committerAdam Jackson <ajax@redhat.com>2008-02-29 16:42:04 -0500
commit5d5fcc7198ca54fa9dc24fe974763eff9fddabee (patch)
tree972a394f384bf2437d987a8608747739e2f7fc4e /dix
parent8f0a4282f0ac33625eda9466e3db0bcef64e403a (diff)
Bug #10464: Set pixel value to 0 before FindColor()
Diffstat (limited to 'dix')
-rw-r--r--dix/colormap.c1
1 files changed, 1 insertions, 0 deletions
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) {