diff options
author | Egbert Eich <eich@suse.de> | 2004-07-30 21:10:46 +0000 |
---|---|---|
committer | Egbert Eich <eich@suse.de> | 2004-07-30 21:10:46 +0000 |
commit | 0ba15599466ddb644728c6b68e64e05b1317ac2e (patch) | |
tree | a8ffa0ec4b451b03536e7a0789cfd7d20c5a8911 /dix/privates.c | |
parent | bbfe7bed3fe4d9bd089327cd59e6faedb592dabb (diff) |
Adding a colormap index to the InitColormapPrivate() func call. Without it
it was completely useless.
test if colormap with index really exists in the list of installed maps
before using it.
Diffstat (limited to 'dix/privates.c')
-rw-r--r-- | dix/privates.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dix/privates.c b/dix/privates.c index 64d705e24..672738f29 100644 --- a/dix/privates.c +++ b/dix/privates.c @@ -358,7 +358,7 @@ InitCmapPrivFunc initPrivFunc; pColormap->devPrivates = privs; - if (!privs || !(*initPrivFunc)(pColormap)) + if (!privs || !(*initPrivFunc)(pColormap,index)) { colormapPrivateCount--; return -1; |