mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
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
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user