Mercurial > pidgin.yaz
changeset 5474:0b355ec51083
[gaim-migrate @ 5868]
fix for wgaim_localtime_r
committer: Tailor Script <tailor@pidgin.im>
author | Herman Bloggs <hermanator12002@yahoo.com> |
---|---|
date | Wed, 21 May 2003 21:02:05 +0000 |
parents | 794d81c10d0a |
children | ad9887c91a59 |
files | src/win32/libc_interface.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/win32/libc_interface.c Wed May 21 17:08:43 2003 +0000 +++ b/src/win32/libc_interface.c Wed May 21 21:02:05 2003 +0000 @@ -347,6 +347,8 @@ struct tm * wgaim_localtime_r (const time_t *time, struct tm *resultp) { struct tm* tmptm; + if(!time) + return; tmptm = localtime(time); if(resultp && tmptm) return memcpy(resultp, tmptm, sizeof(struct tm));