diff options
-rw-r--r-- | apps/app_voicemail.c | 2 | ||||
-rw-r--r-- | main/stdtime/localtime.c | 1 |
2 files changed, 1 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); diff --git a/main/stdtime/localtime.c b/main/stdtime/localtime.c index 94513ae76..af8fe391d 100644 --- a/main/stdtime/localtime.c +++ b/main/stdtime/localtime.c @@ -1141,6 +1141,7 @@ static struct ast_tm *localsub(const struct timeval *timep, const long offset, s struct ast_tm *ast_localtime(const struct timeval *timep, struct ast_tm *tmp, const char *zone) { const struct state *sp = ast_tzset(zone); + memset(tmp, 0, sizeof(*tmp)); return sp ? localsub(timep, 0L, tmp, sp) : NULL; } |