XP_BZERO(server, sizeof(DIR_Server));
memset(server, 0, sizeof(DIR_Server));
nsresult DIR_InitServer (DIR_Server *server){	NS_ASSERTION((server != nsnull), "server is null");	if (server)	{		XP_BZERO(server, sizeof(DIR_Server));		server->saveResults = PR_TRUE;		server->efficientWildcards = kDefaultEfficientWildcards;		server->port = LDAP_PORT;		server->maxHits = kDefaultMaxHits;		server->isOffline = kDefaultIsOffline;		server->refCount = 1;		server->position = kDefaultPosition;		server->csid = CS_UTF8;		server->locale = nsnull;        server->uri = nsnull;	}	return NS_OK;}