[Asterisk-cvs] asterisk/apps app_voicemail.c,1.235,1.236

markster at lists.digium.com markster at lists.digium.com
Mon Aug 1 07:03:03 CDT 2005


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv8281/apps

Modified Files:
	app_voicemail.c 
Log Message:
Make sure we don't close a mailbox if we didn't open one (bug #4800)


Index: app_voicemail.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_voicemail.c,v
retrieving revision 1.235
retrieving revision 1.236
diff -u -d -r1.235 -r1.236
--- app_voicemail.c	1 Aug 2005 11:03:09 -0000	1.235
+++ app_voicemail.c	1 Aug 2005 11:09:03 -0000	1.236
@@ -4713,7 +4713,8 @@
 	char *options;
 
 	LOCAL_USER_ADD(u);
-	memset(&vms, 0, sizeof(vms));	
+	memset(&vms, 0, sizeof(vms));
+	vms.lastmsg = -1;
 	memset(&vmus, 0, sizeof(vmus));
 	ast_copy_string(fmtc, vmfmts, sizeof(fmtc));
 	if (chan->_state != AST_STATE_UP)




More information about the svn-commits mailing list