Fixed compiler warning.

This commit is contained in:
Ilia Alshanetsky 2005-03-22 14:44:23 +00:00
parent dce82da87d
commit 7af2c5e44b

View file

@ -107,7 +107,7 @@ PHP_FUNCTION(gettimeofday)
Returns an array of usage statistics */
PHP_FUNCTION(getrusage)
{
struct rusage usg = {0};
struct rusage usg;
long pwho = 0;
int who = RUSAGE_SELF;
@ -115,6 +115,8 @@ PHP_FUNCTION(getrusage)
who = RUSAGE_CHILDREN;
}
memset(&usg, 0, sizeof(struct rusage));
if (getrusage(who, &usg) == -1) {
RETURN_FALSE;
}