From: Tilghman Lesher Date: Mon, 13 Aug 2007 21:44:22 +0000 (+0000) Subject: Only use the sanitysql if it's not zero-len X-Git-Tag: 1.6.0-beta1~3^2~1735 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c41121cdbbd7a205619707370ed429416cdd2cc9;p=thirdparty%2Fasterisk.git Only use the sanitysql if it's not zero-len git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79333 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_odbc.c b/res/res_odbc.c index d688930c15..6b70f16f66 100644 --- a/res/res_odbc.c +++ b/res/res_odbc.c @@ -176,7 +176,7 @@ int ast_odbc_sanity_check(struct odbc_obj *obj) SQLHSTMT stmt; int res = 0; - if (obj->parent->sanitysql) + if (!ast_strlen_zero(obj->parent->sanitysql)) test_sql = obj->parent->sanitysql; if (obj->up) {