Minor cleanup
authorMark Spencer <markster@digium.com>
Mon, 16 Jun 2003 11:14:56 +0000 (11:14 +0000)
committerMark Spencer <markster@digium.com>
Mon, 16 Jun 2003 11:14:56 +0000 (11:14 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1094 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail2.c

index bba7b31..f2b3707 100755 (executable)
@@ -620,6 +620,7 @@ static int sendmail(char *srcemail, char *email, char *name, int msgnum, char *m
                                if (vmlen < 20)
                                        vmlen = 100;
                                passdata = alloca(vmlen);
+                               bzero( passdata, vmlen );
                                pbx_builtin_setvar_helper(ast, "VM_NAME", name);
                                pbx_builtin_setvar_helper(ast, "VM_DUR", dur);
                                sprintf(passdata,"%d",msgnum);