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


apps/speed.c:2610:1: start of procedure do_multi()
2608.       }
2609.   
2610. > static int do_multi(int multi)
2611.   	{
2612.   	int n;

apps/speed.c:2615:2: 
2613.   	int fd[2];
2614.   	int *fds;
2615. > 	static char sep[]=":";
2616.   
2617.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:2617:2: 
2615.   	static char sep[]=":";
2616.   
2617. > 	fds=malloc(multi*sizeof *fds);
2618.   	for(n=0 ; n < multi ; ++n)
2619.   		{

apps/speed.c:2618:6: 
2616.   
2617.   	fds=malloc(multi*sizeof *fds);
2618. > 	for(n=0 ; n < multi ; ++n)
2619.   		{
2620.   		pipe(fd);

apps/speed.c:2618:12: Loop condition is true. Entering loop body
2616.   
2617.   	fds=malloc(multi*sizeof *fds);
2618.   	for(n=0 ; n < multi ; ++n)
                   ^
2619.   		{
2620.   		pipe(fd);

apps/speed.c:2620:3: 
2618.   	for(n=0 ; n < multi ; ++n)
2619.   		{
2620. > 		pipe(fd);
2621.   		fflush(stdout);
2622.   		fflush(stderr);

apps/speed.c:2621:3: 
2619.   		{
2620.   		pipe(fd);
2621. > 		fflush(stdout);
2622.   		fflush(stderr);
2623.   		if(fork())

apps/speed.c:2622:3: 
2620.   		pipe(fd);
2621.   		fflush(stdout);
2622. > 		fflush(stderr);
2623.   		if(fork())
2624.   			{

apps/speed.c:2623:6: Taking true branch
2621.   		fflush(stdout);
2622.   		fflush(stderr);
2623.   		if(fork())
             ^
2624.   			{
2625.   			close(fd[1]);

apps/speed.c:2625:4: 
2623.   		if(fork())
2624.   			{
2625. > 			close(fd[1]);
2626.   			fds[n]=fd[0];
2627.   			}

apps/speed.c:2626:4: 
2624.   			{
2625.   			close(fd[1]);
2626. > 			fds[n]=fd[0];
2627.   			}
2628.   		else
