]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_enum windows fix for last commit
authorJeff Lenk <jeff@jefflenk.com>
Fri, 21 Sep 2012 02:04:39 +0000 (21:04 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Fri, 21 Sep 2012 02:04:39 +0000 (21:04 -0500)
src/mod/applications/mod_enum/mod_enum.c

index ae19bdb7918eb8cddd3bf5102be637b811c0c8ab..9835fda46dca32debc263d445667654705084b68 100644 (file)
@@ -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;
                        }
                }
        }