aboutsummaryrefslogtreecommitdiffstats
path: root/main/stdtime
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-17 20:19:58 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-17 20:19:58 +0000
commit86e008ed63b45984e04f7662287b4ffbf235f04f (patch)
treef23ec5214be8545a1b040ae782511e5aa47fa556 /main/stdtime
parent6df63b3dca1330b4b1a38154c57769c2d09e5dbd (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: http://svn.digium.com/svn/asterisk/trunk@82678 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/stdtime')
-rw-r--r--main/stdtime/localtime.c1
1 files changed, 1 insertions, 0 deletions
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;
}