httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@algroup.co.uk>
Subject Re: cvs commit: apache-2.0/src/lib/apr/time/unix timestr.c
Date Mon, 17 Jan 2000 23:45:49 GMT
stoddard@hyperreal.org wrote:
> 
> stoddard    00/01/17 15:23:48
> 
>   Modified:    src/lib/apr/time/unix timestr.c
>   Log:
>   Initialize struct tm
>   Submitted by: Paul Reder
>
>   +    memset(&tm, 0, sizeof(struct tm));

Y'know, memset(&tm, 0, sizeof tm); has always struck me as more correct
and less prone to coming back and biting you later...

Cheers,

Ben.

--
SECURE HOSTING AT THE BUNKER! http://www.thebunker.net/hosting.htm

http://www.apache-ssl.org/ben.html

"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
     - Indira Gandhi

Mime
View raw message