提交 a67389ad authored 作者: Michael Jerris's avatar Michael Jerris

CID:1025879 Logically dead code

上级 ecde4317
......@@ -183,7 +183,7 @@ static switch_bool_t cidlookup_execute_sql_callback(char *sql, switch_core_db_ca
retval = SWITCH_TRUE;
}
} else {
*err = switch_core_sprintf(cbt->pool, "Unable to get database handle. dsn: %s, dbh is %s\n", globals.odbc_dsn, dbh ? "not null" : "null");
*err = switch_core_sprintf(cbt->pool, "Unable to get database handle. dsn: [%s]\n", switch_str_nil(globals.odbc_dsn));
}
switch_cache_db_release_db_handle(&dbh);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论