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


apps/speed.c:2585:1: start of procedure do_multi()
2583.       }
2584.   
2585. > static int do_multi(int multi)
2586.   	{
2587.   	int n;

apps/speed.c:2590:2: 
2588.   	int fd[2];
2589.   	int *fds;
2590. > 	static char sep[]=":";
2591.   
2592.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:2592:2: 
2590.   	static char sep[]=":";
2591.   
2592. > 	fds=malloc(multi*sizeof *fds);
2593.   	for(n=0 ; n < multi ; ++n)
2594.   		{

apps/speed.c:2593:6: 
2591.   
2592.   	fds=malloc(multi*sizeof *fds);
2593. > 	for(n=0 ; n < multi ; ++n)
2594.   		{
2595.   		pipe(fd);

apps/speed.c:2593:12: Loop condition is true. Entering loop body
2591.   
2592.   	fds=malloc(multi*sizeof *fds);
2593.   	for(n=0 ; n < multi ; ++n)
                   ^
2594.   		{
2595.   		pipe(fd);

apps/speed.c:2595:3: 
2593.   	for(n=0 ; n < multi ; ++n)
2594.   		{
2595. > 		pipe(fd);
2596.   		if(fork())
2597.   			{

apps/speed.c:2596:6: Taking true branch
2594.   		{
2595.   		pipe(fd);
2596.   		if(fork())
             ^
2597.   			{
2598.   			close(fd[1]);

apps/speed.c:2598:4: 
2596.   		if(fork())
2597.   			{
2598. > 			close(fd[1]);
2599.   			fds[n]=fd[0];
2600.   			}

apps/speed.c:2599:4: 
2597.   			{
2598.   			close(fd[1]);
2599. > 			fds[n]=fd[0];
2600.   			}
2601.   		else
