apps/speed.c:2509: error: NULL_DEREFERENCE
  pointer `fds` last assigned on line 2502 could be null and is dereferenced at line 2509, column 4.
Showing all 9 steps of the trace


apps/speed.c:2495:1: start of procedure do_multi()
2493.   
2494.   #ifdef HAVE_FORK
2495. > static int do_multi(int multi)
2496.   	{
2497.   	int n;

apps/speed.c:2500:2: 
2498.   	int fd[2];
2499.   	int *fds;
2500. > 	static char sep[]=":";
2501.   
2502.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:2502:2: 
2500.   	static char sep[]=":";
2501.   
2502. > 	fds=malloc(multi*sizeof *fds);
2503.   	for(n=0 ; n < multi ; ++n)
2504.   		{

apps/speed.c:2503:6: 
2501.   
2502.   	fds=malloc(multi*sizeof *fds);
2503. > 	for(n=0 ; n < multi ; ++n)
2504.   		{
2505.   		pipe(fd);

apps/speed.c:2503:12: Loop condition is true. Entering loop body
2501.   
2502.   	fds=malloc(multi*sizeof *fds);
2503.   	for(n=0 ; n < multi ; ++n)
                   ^
2504.   		{
2505.   		pipe(fd);

apps/speed.c:2505:3: 
2503.   	for(n=0 ; n < multi ; ++n)
2504.   		{
2505. > 		pipe(fd);
2506.   		if(fork())
2507.   			{

apps/speed.c:2506:6: Taking true branch
2504.   		{
2505.   		pipe(fd);
2506.   		if(fork())
             ^
2507.   			{
2508.   			close(fd[1]);

apps/speed.c:2508:4: 
2506.   		if(fork())
2507.   			{
2508. > 			close(fd[1]);
2509.   			fds[n]=fd[0];
2510.   			}

apps/speed.c:2509:4: 
2507.   			{
2508.   			close(fd[1]);
2509. > 			fds[n]=fd[0];
2510.   			}
2511.   		else
