mod_enum windows fix for last commit

This commit is contained in:
Jeff Lenk 2012-09-20 21:04:39 -05:00
parent 1a58647450
commit 142374eaab
1 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ static switch_status_t load_config(void)
done: done:
#ifdef _MSC_VER #ifdef _MSC_VER
if (!globals.server) { if (!globals.nameserver[0]) {
HKEY hKey; HKEY hKey;
DWORD data_sz; DWORD data_sz;
char* buf; char* buf;
@ -183,7 +183,7 @@ static switch_status_t load_config(void)
buf[data_sz] = 0; buf[data_sz] = 0;
} }
switch_replace_char(buf, ' ', 0, SWITCH_FALSE); /* only use the first entry ex "192.168.1.1 192.168.1.2" */ switch_replace_char(buf, ' ', 0, SWITCH_FALSE); /* only use the first entry ex "192.168.1.1 192.168.1.2" */
globals.server = buf; globals.nameserver[0] = buf;
} }
} }
} }