提交 2a3c1438 authored 作者: Anthony Minessale's avatar Anthony Minessale

update

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6136 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 ae31d229
...@@ -24,12 +24,11 @@ ...@@ -24,12 +24,11 @@
* Contributor(s): * Contributor(s):
* *
* Anthony Minessale II <anthmct@yahoo.com> * Anthony Minessale II <anthmct@yahoo.com>
* Neal Horman <neal at wanlink dot com>
* *
* * mod_limit.c -- Resource Limit Module
* mod_limit.c -- Framework Demo Module
* *
*/ */
#include <switch.h> #include <switch.h>
#ifdef SWITCH_HAVE_ODBC #ifdef SWITCH_HAVE_ODBC
#include <switch_odbc.h> #include <switch_odbc.h>
...@@ -179,12 +178,13 @@ static switch_status_t do_config() ...@@ -179,12 +178,13 @@ static switch_status_t do_config()
if ((settings = switch_xml_child(cfg, "settings"))) { if ((settings = switch_xml_child(cfg, "settings"))) {
for (param = switch_xml_child(settings, "param"); param; param = param->next) { for (param = switch_xml_child(settings, "param"); param; param = param->next) {
char *var = (char *) switch_xml_attr_soft(param, "name"); char *var = NULL;
char *val = (char *) switch_xml_attr_soft(param, "value"); char *val = NULL;
if (!strcasecmp(var, "debug")) { var = (char *) switch_xml_attr_soft(param, "name");
val = (char *) switch_xml_attr_soft(param, "value");
} else if (!strcasecmp(var, "odbc-dsn")) {
if (!strcasecmp(var, "odbc-dsn")) {
#ifdef SWITCH_HAVE_ODBC #ifdef SWITCH_HAVE_ODBC
globals.odbc_dsn = switch_core_strdup(globals.pool, val); globals.odbc_dsn = switch_core_strdup(globals.pool, val);
if ((odbc_user = strchr(globals.odbc_dsn, ':'))) { if ((odbc_user = strchr(globals.odbc_dsn, ':'))) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论