Fixed a crash on NetBSD
This commit is contained in:
parent
ec427932a5
commit
af8caf0bce
|
@ -35,7 +35,7 @@ static int _time(char * argv[])
|
||||||
struct tms tmsbuf;
|
struct tms tmsbuf;
|
||||||
clock_t cbefore, cafter;
|
clock_t cbefore, cafter;
|
||||||
|
|
||||||
if((cbefore = times(NULL)) == (clock_t)-1)
|
if((cbefore = times(&tmsbuf)) == (clock_t)-1)
|
||||||
return _time_error("times", 2);
|
return _time_error("times", 2);
|
||||||
if((pid = fork()) == -1)
|
if((pid = fork()) == -1)
|
||||||
return _time_error("fork", 2);
|
return _time_error("fork", 2);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user