diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-02-29 16:42:04 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-02-29 16:42:04 -0500 |
commit | 5d5fcc7198ca54fa9dc24fe974763eff9fddabee (patch) | |
tree | 972a394f384bf2437d987a8608747739e2f7fc4e /dix | |
parent | 8f0a4282f0ac33625eda9466e3db0bcef64e403a (diff) |
Bug #10464: Set pixel value to 0 before FindColor()
Diffstat (limited to 'dix')
-rw-r--r-- | dix/colormap.c | 1 |
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) { |