summaryrefslogtreecommitdiff
path: root/dix/main.c
diff options
context:
space:
mode:
authorTomas Carnecky <tom@dbservice.com>2008-08-04 23:26:00 +0300
committerDaniel Stone <daniel@fooishbar.org>2008-08-05 01:17:32 +0300
commit277a74bcbb7d0a93c4f2e1de11daabd8c5f93ee8 (patch)
treeff926c7262d41be27ad2b76274a1be028ad588ec /dix/main.c
parent5532d63488ec45953ff7f925cfb4f87adb3b04a0 (diff)
Redefine clients as a fixed array
This removes yet another xalloc() each server generation. Also, I couldn't find the corresponding xfree() so I guess that used to be a memory leak there.
Diffstat (limited to 'dix/main.c')
-rw-r--r--dix/main.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/dix/main.c b/dix/main.c
index c34bc8a3c..35e59bd46 100644
--- a/dix/main.c
+++ b/dix/main.c
@@ -284,10 +284,7 @@ int main(int argc, char *argv[], char *envp[])
{
CreateWellKnownSockets();
InitProcVectors();
- clients = (ClientPtr *)xalloc(MAXCLIENTS * sizeof(ClientPtr));
- if (!clients)
- FatalError("couldn't create client array");
- for (i=1; i<MAXCLIENTS; i++)
+ for (i=1; i<MAXCLIENTS; i++)
clients[i] = NullClient;
serverClient = (ClientPtr)xalloc(sizeof(ClientRec));
if (!serverClient)