rem: Ns_DString addr;
context: NsInitConf(void){    Ns_DString addr;    static char cwd[PATH_MAX];    extern char *nsBuildDate; /* NB: Declared in stamp.c */    Ns_ThreadSetName("-main-");    /*     * At library load time the server is considered started.      * Normally it's marked stopped immediately by Ns_Main unless     * libnsd is being used for some other, non-server program.     */         nsconf.state.started = 1;    Ns_MutexInit(&nsconf.state.lock);    Ns_MutexSetName(&nsconf.state.lock, "nsd:conf");    nsconf.build	 = nsBuildDate;    nsconf.name          = NSD_NAME;    nsconf.version       = NSD_VERSION;    nsconf.tcl.version	 = TCL_VERSION;    time(&nsconf.boot_t);    nsconf.pid = getpid();    nsconf.home = getcwd(cwd, sizeof(cwd));    if (gethostname(nsconf.hostname, sizeof(nsconf.hostname)) != 0) {        strcpy(nsconf.hostname, "localhost");    }    Ns_DStringInit(&addr);    if (Ns_GetAddrByHost(&addr, nsconf.hostname)) {    	strcpy(nsconf.address, addr.string);    }    Ns_DStringFree(&addr);    Tcl_InitHashTable(&nsconf.sections, TCL_STRING_KEYS);    Tcl_DStringInit(&nsconf.servers);    Tcl_InitHashTable(&nsconf.servertable, TCL_STRING_KEYS);}