mod_callcenter: Fix initial ODBC Support (SEGV)

This commit is contained in:
Marc Olivier Chouinard 2010-09-12 20:06:20 -04:00
parent bddec41f43
commit a2e5f07c4d
1 changed files with 1 additions and 1 deletions

View File

@ -1259,7 +1259,7 @@ static switch_status_t load_config(void)
if (!strcasecmp(var, "debug")) {
globals.debug = atoi(val);
} else if (!strcasecmp(var, "odbc-dsn")) {
globals.odbc_dsn = strdup(switch_xml_attr(param, "odbc-dsn"));
globals.odbc_dsn = strdup(val);
if (!zstr(globals.odbc_dsn)) {
if ((globals.odbc_user = strchr(globals.odbc_dsn, ':'))) {