diff -r b7ca31a87ad2 -r eec4dad3e035 src/win32/libc_interface.c --- 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));