CVS update: php3/functions

From: Date: Tue, 18 May 1999 12:56:39 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-5759@lists.php.net to get a copy of this message
Date: Tuesday May 18, 1999 @ 8:56 Author: sas Update of /repository/php3/functions In directory php:/tmp/cvs-serv14736 Modified Files: microtime.c Log Message: initialize structures (#1421) Index: php3/functions/microtime.c diff -u php3/functions/microtime.c:1.29 php3/functions/microtime.c:1.30 --- php3/functions/microtime.c:1.29 Fri Feb 12 04:13:07 1999 +++ php3/functions/microtime.c Tue May 18 08:56:39 1999 @@ -27,7 +27,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: microtime.c,v 1.29 1999/02/12 09:13:07 fmk Exp $ */ +/* $Id: microtime.c,v 1.30 1999/05/18 12:56:39 sas Exp $ */ #include "php.h" #include <stdlib.h> @@ -98,7 +98,9 @@ #if HAVE_GETTIMEOFDAY struct timeval tp; struct timezone tz; - + + memset(&tp, 0, sizeof(tp)); + memset(&tz, 0, sizeof(tz)); if(gettimeofday(&tp, &tz) == 0) { array_init(return_value); add_assoc_long(return_value, "sec", tp.tv_sec); @@ -129,6 +131,7 @@ who = RUSAGE_CHILDREN; } + memset(&usg, 0, sizeof(usg)); if(getrusage(who, &usg) == -1) { RETURN_FALSE; } -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#5759) next »