From 836aefce61f2d31e905235dd37e3bfd77e8f3d1f Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 14 Oct 2009 21:42:33 +0000 Subject: [PATCH] MODAPP-353 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15161 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_voicemail/mod_voicemail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index 520a61de79..2858a00977 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -3053,7 +3053,7 @@ greet_key_press: if (disk_quota) { callback_t callback = { 0 }; char sqlstmt[256]; - char disk_usage[256]; + char disk_usage[256] = ""; callback.buf = disk_usage; callback.len = sizeof(disk_usage); @@ -3061,7 +3061,7 @@ greet_key_press: switch_snprintf(sqlstmt, sizeof(sqlstmt), "select sum(message_len) from voicemail_msgs where username='%s' and domain='%s'", id, domain_name); - vm_execute_sql_callback(profile, profile->mutex, sql, sql2str_callback, &callback); + vm_execute_sql_callback(profile, profile->mutex, sqlstmt, sql2str_callback, &callback); if (atoi(disk_usage) >= disk_quota) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_NOTICE, "Voicemail disk quota is exceeded for %s\n", id);