[asterisk-commits] tilghman: trunk r79333 - /trunk/res/res_odbc.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Aug 13 16:44:23 CDT 2007


Author: tilghman
Date: Mon Aug 13 16:44:22 2007
New Revision: 79333

URL: http://svn.digium.com/view/asterisk?view=rev&rev=79333
Log:
Only use the sanitysql if it's not zero-len

Modified:
    trunk/res/res_odbc.c

Modified: trunk/res/res_odbc.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_odbc.c?view=diff&rev=79333&r1=79332&r2=79333
==============================================================================
--- trunk/res/res_odbc.c (original)
+++ trunk/res/res_odbc.c Mon Aug 13 16:44:22 2007
@@ -176,7 +176,7 @@
 	SQLHSTMT stmt;
 	int res = 0;
 
-	if (obj->parent->sanitysql)
+	if (!ast_strlen_zero(obj->parent->sanitysql))
 		test_sql = obj->parent->sanitysql;
 
 	if (obj->up) {




More information about the asterisk-commits mailing list