From: Jeff Lenk Date: Fri, 21 Sep 2012 02:04:39 +0000 (-0500) Subject: mod_enum windows fix for last commit X-Git-Tag: v1.3.0~203 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=142374eaabcf5c7e88234c3cad5d5b5ebcdb4c93;p=thirdparty%2Ffreeswitch.git mod_enum windows fix for last commit --- diff --git a/src/mod/applications/mod_enum/mod_enum.c b/src/mod/applications/mod_enum/mod_enum.c index ae19bdb791..9835fda46d 100644 --- a/src/mod/applications/mod_enum/mod_enum.c +++ b/src/mod/applications/mod_enum/mod_enum.c @@ -163,7 +163,7 @@ static switch_status_t load_config(void) done: #ifdef _MSC_VER - if (!globals.server) { + if (!globals.nameserver[0]) { HKEY hKey; DWORD data_sz; char* buf; @@ -183,7 +183,7 @@ static switch_status_t load_config(void) 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" */ - globals.server = buf; + globals.nameserver[0] = buf; } } }