aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-13 21:44:22 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-13 21:44:22 +0000
commit6daaf236fa02216a08f8868429eebc55ee2383a9 (patch)
treed6d5552e22de495a3d52bfb8593298950dd40608 /res
parentf8f162f4c78a88c5ec3006d50953488161d86f53 (diff)
Only use the sanitysql if it's not zero-len
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79333 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_odbc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_odbc.c b/res/res_odbc.c
index d688930c1..6b70f16f6 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) {