diff options
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 9bb3e9f8e..3a99622c3 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -1958,6 +1958,8 @@ static void make_email_file(FILE *p, char *srcemail, struct ast_vm_user *vmu, in #endif gethostname(host, sizeof(host)-1); + memset(&tm, 0, sizeof(tm)); + if (strchr(srcemail, '@')) ast_copy_string(who, srcemail, sizeof(who)); else @@ -2235,7 +2237,10 @@ static int get_date(char *s, int len) { struct ast_tm tm; struct timeval t = ast_tvnow(); + + memset(&tm, 0, sizeof(tm)); ast_localtime(&t, &tm, NULL); + return ast_strftime(s, len, "%a %b %e %r %Z %Y", &tm); } |