From b8d93de097664ce94876c3e976c7870c107bbd57 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 25 Mar 2011 17:05:13 -0500 Subject: [PATCH] memset str on cache_db_sql2str --- src/switch_core_sqldb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/switch_core_sqldb.c b/src/switch_core_sqldb.c index 27bac6d4b4..7f2c9c712f 100644 --- a/src/switch_core_sqldb.c +++ b/src/switch_core_sqldb.c @@ -606,6 +606,8 @@ SWITCH_DECLARE(char *) switch_cache_db_execute_sql2str(switch_cache_db_handle_t if (io_mutex) switch_mutex_lock(io_mutex); + memset(str, 0, len); + switch (dbh->type) { case SCDB_TYPE_CORE_DB: {