[asterisk-addons-commits] file: trunk r364 -
/trunk/res_config_mysql.c
asterisk-addons-commits at lists.digium.com
asterisk-addons-commits at lists.digium.com
Wed Apr 11 09:37:58 MST 2007
Author: file
Date: Wed Apr 11 11:37:57 2007
New Revision: 364
URL: http://svn.digium.com/view/asterisk-addons?view=rev&rev=364
Log:
Minor tweak... use ast_strlen_zero to see if host is NULL or not.
Modified:
trunk/res_config_mysql.c
Modified: trunk/res_config_mysql.c
URL: http://svn.digium.com/view/asterisk-addons/trunk/res_config_mysql.c?view=diff&rev=364&r1=363&r2=364
==============================================================================
--- trunk/res_config_mysql.c (original)
+++ trunk/res_config_mysql.c Wed Apr 11 11:37:57 2007
@@ -792,7 +792,7 @@
} else
conn->port = atoi(s);
- if (!conn->host && !(s = ast_variable_retrieve(config, "general", "dbsock"))) {
+ if (ast_strlen_zero(conn->host) && !(s = ast_variable_retrieve(config, "general", "dbsock"))) {
ast_log(LOG_WARNING, "MySQL RealTime: No database socket found, using '/tmp/mysql.sock' as default.\n");
s = "/tmp/mysql.sock";
}
More information about the asterisk-addons-commits
mailing list