diff options
author | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-04-21 20:08:05 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-04-21 20:09:20 -0700 |
commit | 8822110d7d6b684f373fc883aeb7cab9734e9ddb (patch) | |
tree | 4885bfe065edee1c2e3a5a66bbe4f888cd7993a6 /dix/dixutils.c | |
parent | 5ffb6a2fe8db5871eaf26b8535af1588c43f33d3 (diff) |
Fixed dixLookupClient to work with client=NullClient as it did in the 1.3 branch
(cherry picked from commit e41ccc64702f856e5e09dfa652fe73c14b8a0225)
(cherry picked from commit ce5a5f93990647de85e535734ee6bb430ad591cb)
Diffstat (limited to 'dix/dixutils.c')
-rw-r--r-- | dix/dixutils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dix/dixutils.c b/dix/dixutils.c index aaf510623..22935cead 100644 --- a/dix/dixutils.c +++ b/dix/dixutils.c @@ -270,7 +270,8 @@ dixLookupClient(ClientPtr *pClient, XID rid, ClientPtr client, Mask access) *pClient = clients[clientIndex]; return Success; bad: - client->errorValue = rid; + if(client) + client->errorValue = rid; *pClient = NULL; return rc; } |