提交 a482decf authored 作者: Anthony Minessale's avatar Anthony Minessale

zero out buffer on (null)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14328 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 2f8ab977
......@@ -59,8 +59,9 @@ SWITCH_DECLARE(const unsigned char *) switch_core_db_column_text(switch_core_db_
{
const unsigned char *txt = sqlite3_column_text(stmt, iCol);
if (txt && !strcasecmp((char *)txt, "(null)")) {
txt = NULL;
if (!strcasecmp((char *)stmt, "(null)")) {
memset(stmt, 0, 1);
txt = NULL;
}
return txt;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论