From 7b37a60418624a484ef3d6354ec4a3ce283f24bd Mon Sep 17 00:00:00 2001
From: Tilghman Lesher <tilghman@meg.abyt.es>
Date: Wed, 17 Jun 2009 21:31:39 +0000
Subject: [PATCH] Initialize additional variables, to prevent a possible crash.
 (closes issue #15186)  Reported by: ajohnson  Patches:       
 20090528__issue15186.diff.txt uploaded by tilghman (license 14)  Tested by:
 ajohnson

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@201531 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 apps/app_voicemail.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 444f2db6cd..51b78e2547 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -3349,7 +3349,8 @@ static int store_file(char *dir, char *mailboxuser, char *mailboxcontext, int ms
 	char *c;
 	struct ast_config *cfg=NULL;
 	struct odbc_obj *obj;
-	struct insert_data idata = { .sql = sql, .msgnums = msgnums, .dir = dir, .mailboxuser = mailboxuser, .mailboxcontext = mailboxcontext };
+	struct insert_data idata = { .sql = sql, .msgnums = msgnums, .dir = dir, .mailboxuser = mailboxuser, .mailboxcontext = mailboxcontext,
+		.context = "", .macrocontext = "", .callerid = "", .origtime = "", .duration = "", .category = "", .flag = "" };
 	struct ast_flags config_flags = { CONFIG_FLAG_NOCACHE };
 
 	delete_file(dir, msgnum);
-- 
GitLab