mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
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: https://origsvn.digium.com/svn/asterisk/trunk@82678 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user