diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 444f2db6cd4f089b88e0b373476ee76ecdd5ea9c..51b78e2547b079c9176bca8b5352151695db1b3a 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);