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


apps/speed.c:2457:1: start of procedure do_multi()
2455.       }
2456.   
2457. > static int do_multi(int multi)
2458.   	{
2459.   	int n;

apps/speed.c:2462:2: 
2460.   	int fd[2];
2461.   	int *fds;
2462. > 	static char sep[]=":";
2463.   
2464.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:2464:2: 
2462.   	static char sep[]=":";
2463.   
2464. > 	fds=malloc(multi*sizeof *fds);
2465.   	for(n=0 ; n < multi ; ++n)
2466.   		{

apps/speed.c:2465:6: 
2463.   
2464.   	fds=malloc(multi*sizeof *fds);
2465. > 	for(n=0 ; n < multi ; ++n)
2466.   		{
2467.   		pipe(fd);

apps/speed.c:2465:12: Loop condition is true. Entering loop body
2463.   
2464.   	fds=malloc(multi*sizeof *fds);
2465.   	for(n=0 ; n < multi ; ++n)
                   ^
2466.   		{
2467.   		pipe(fd);

apps/speed.c:2467:3: 
2465.   	for(n=0 ; n < multi ; ++n)
2466.   		{
2467. > 		pipe(fd);
2468.   		if(fork())
2469.   			{

apps/speed.c:2468:6: Taking true branch
2466.   		{
2467.   		pipe(fd);
2468.   		if(fork())
             ^
2469.   			{
2470.   			close(fd[1]);

apps/speed.c:2470:4: 
2468.   		if(fork())
2469.   			{
2470. > 			close(fd[1]);
2471.   			fds[n]=fd[0];
2472.   			}

apps/speed.c:2471:4: 
2469.   			{
2470.   			close(fd[1]);
2471. > 			fds[n]=fd[0];
2472.   			}
2473.   		else
