[asterisk-commits] espiceland: branch 1.8 r290938 - /branches/1.8/addons/res_config_mysql.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Oct 8 10:49:18 CDT 2010


Author: espiceland
Date: Fri Oct  8 10:49:16 2010
New Revision: 290938

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=290938
Log:
Parentheses around assignment used as truth value, introduced in r290937.

Modified:
    branches/1.8/addons/res_config_mysql.c

Modified: branches/1.8/addons/res_config_mysql.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/addons/res_config_mysql.c?view=diff&rev=290938&r1=290937&r2=290938
==============================================================================
--- branches/1.8/addons/res_config_mysql.c (original)
+++ branches/1.8/addons/res_config_mysql.c Fri Oct  8 10:49:16 2010
@@ -1528,7 +1528,7 @@
 	} else
 		ast_copy_string(conn->sock, s, sizeof(conn->sock));
 
-	if (s = ast_variable_retrieve(config, category, "dbcharset")) {
+	if ((s = ast_variable_retrieve(config, category, "dbcharset"))) {
 		ast_copy_string(conn->charset, s, sizeof(conn->charset));
 	}
 




More information about the asterisk-commits mailing list