mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-30 10:15:52 +00:00
zero out buffer on (null)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14328 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
2f8ab9775c
commit
a482decfac
@ -59,7 +59,8 @@ 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)")) {
|
||||
if (!strcasecmp((char *)stmt, "(null)")) {
|
||||
memset(stmt, 0, 1);
|
||||
txt = NULL;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user