From c41121cdbbd7a205619707370ed429416cdd2cc9 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Mon, 13 Aug 2007 21:44:22 +0000 Subject: [PATCH] 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 --- res/res_odbc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {