diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-17 20:16:25 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-17 20:16:25 +0000 |
commit | 9e5a60c4ea77bbe8ae7ca9d77f16b99d11ad6bc0 (patch) | |
tree | 7e28fce755f662e6ecead5adf07730215a554901 /apps | |
parent | 07e503d2075c10e6a2e9713cee404db1af21e61d (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.4@82676 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index d3d29e606..fe55a5019 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -1783,8 +1783,6 @@ static void make_email_file(FILE *p, char *srcemail, struct ast_vm_user *vmu, in #define ENDL "\n" #endif - memset(&tm, 0, sizeof(tm)); - gethostname(host, sizeof(host) - 1); if (strchr(srcemail, '@')) ast_copy_string(who, srcemail, sizeof(who)); @@ -2053,7 +2051,6 @@ static int get_date(char *s, int len) time_t t; time(&t); - memset(&tm, 0, sizeof(tm)); ast_localtime(&t, &tm, NULL); |