diff options
author | Egbert Eich <eich@suse.de> | 2004-04-23 19:54:35 +0000 |
---|---|---|
committer | Egbert Eich <eich@suse.de> | 2004-04-23 19:54:35 +0000 |
commit | 7ddd16e116f98daf82e0aa19f3d4128700f9f1d7 (patch) | |
tree | 11fe1f75cdb3a218c3a590bdd044703dbb510dbe /di/resource.c | |
parent | a4538ead47bb66fcf961109e3c4093f7b271db77 (diff) |
Merging XORG-CURRENT into trunkrel-0-6-1lg3d-rel-0-7-0lg3d-rel-0-6-2lg3d-baseXORG-6_8_2XORG-6_8_1_904XORG-6_8_1_903XORG-6_8_1_902XORG-6_8_1_901XORG-6_8_1XORG-6_8_0XORG-6_7_99_904XORG-6_7_99_903XORG-6_7_99_902XORG-6_7_99_901XORG-6_7_99_2XORG-6_7_99_1XACE-SELINUX-MERGEXORG-6_8-branch
Diffstat (limited to 'di/resource.c')
-rw-r--r-- | di/resource.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/di/resource.c b/di/resource.c index 2b7811e..274a5a2 100644 --- a/di/resource.c +++ b/di/resource.c @@ -1,4 +1,5 @@ /* $Xorg: resource.c,v 1.4 2000/08/17 19:53:56 cpqbld Exp $ */ +/* $XdotOrg$ */ /* Copyright 1987, 1998 The Open Group @@ -471,10 +472,12 @@ LookupIDByType(pclient, id, rtype) if (pserver->clientTable[i].buckets) { for (j = 0; j < INITBUCKETS; j++) { if (pserver->clientTable[i].resources[j]) { - res = pserver->clientTable[i].resources[Hash(j, id)]; - for (; res; res = res->next) - if ((res->id == id) && (res->type == rtype)) - return res->value; + if (clients[j]) { + res = pserver->clientTable[i].resources[Hash(j, id)]; + for (; res; res = res->next) + if ((res->id == id) && (res->type == rtype)) + return res->value; + } } } } |