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 /main/stdtime | |
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 'main/stdtime')
-rw-r--r-- | main/stdtime/localtime.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/stdtime/localtime.c b/main/stdtime/localtime.c index 9ecfa0a70..1922e4a22 100644 --- a/main/stdtime/localtime.c +++ b/main/stdtime/localtime.c @@ -1142,6 +1142,7 @@ static struct tm *localsub(const time_t *timep, const long offset, struct tm *tm struct tm *ast_localtime(const time_t *timep, struct 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; } |