]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
memset str on cache_db_sql2str
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 25 Mar 2011 22:05:13 +0000 (17:05 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 25 Mar 2011 22:05:13 +0000 (17:05 -0500)
src/switch_core_sqldb.c

index 27bac6d4b4d17ddfe9fcd60af4868b11b59dae04..7f2c9c712ff7ddb2c62f7490e5c9514689e9503b 100644 (file)
@@ -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:
                {