#include <stdio.h>
#include <stdlib.h>
#include <acess/sys.h>
+#include <assert.h>
// === TYPES ===
typedef struct sClient
void Server_NewClient(int FD)
{
- tClient *clt;
+ tClient *clt = NULL;
// TODO: Is this done in the IPStack?
if( giNumClients == giConfig_MaxClients )
break;
}
}
+ assert(clt);
// Accept the connection
clt->Socket = _SysOpenChild(FD, "", OPENFLAG_READ|OPENFLAG_WRITE);
giNumClients ++;