diff options
author | Russell Bryant <russell@russellbryant.com> | 2007-09-17 20:19:58 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2007-09-17 20:19:58 +0000 |
commit | 96d9f820e9502d5c8b83c3104aada62b43f98524 (patch) | |
tree | f23ec5214be8545a1b040ae782511e5aa47fa556 /apps | |
parent | f498599e56a06be01ac98835cb39d53be5a3e077 (diff) |
Merged revisions 82676 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r82676 | russell | 2007-09-17 15:16:25 -0500 (Mon, 17 Sep 2007) | 4 lines
Put a memset in ast_localtime() instead of a couple places in app_voicemail
to prevent the problem everywhere instead of just a couple of places.
(related to issue #10746)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@82678 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 3a99622c3..54285c298 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -1958,7 +1958,6 @@ 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)); @@ -2238,7 +2237,6 @@ 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); |