mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 04:30:28 +00:00
Fix building of trunk. dbpass is always going to exist.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104081 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -913,7 +913,7 @@ static int pgsql_reconnect(const char *database)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* DB password can legitimately be 0-length */
|
/* DB password can legitimately be 0-length */
|
||||||
if ((!pgsqlConn) && (!ast_strlen_zero(dbhost) || !ast_strlen_zero(dbsock)) && !ast_strlen_zero(dbuser) && dbpass && !ast_strlen_zero(my_database)) {
|
if ((!pgsqlConn) && (!ast_strlen_zero(dbhost) || !ast_strlen_zero(dbsock)) && !ast_strlen_zero(dbuser) && !ast_strlen_zero(my_database)) {
|
||||||
struct ast_str *connInfo = ast_str_create(32);
|
struct ast_str *connInfo = ast_str_create(32);
|
||||||
|
|
||||||
ast_str_set(&connInfo, 0, "host=%s port=%d dbname=%s user=%s",
|
ast_str_set(&connInfo, 0, "host=%s port=%d dbname=%s user=%s",
|
||||||
|
Reference in New Issue
Block a user