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/branches/1.4@82676 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2007-09-17 20:16:25 +00:00
parent a67e593e66
commit 82a6309168
2 changed files with 1 additions and 3 deletions

View File

@@ -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;
}