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


apps/speed.c:2743:1: start of procedure do_multi()
2741.       }
2742.   
2743. > static int do_multi(int multi)
2744.   	{
2745.   	int n;

apps/speed.c:2748:2: 
2746.   	int fd[2];
2747.   	int *fds;
2748. > 	static char sep[]=":";
2749.   
2750.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:2750:2: 
2748.   	static char sep[]=":";
2749.   
2750. > 	fds=malloc(multi*sizeof *fds);
2751.   	for(n=0 ; n < multi ; ++n)
2752.   		{

apps/speed.c:2751:6: 
2749.   
2750.   	fds=malloc(multi*sizeof *fds);
2751. > 	for(n=0 ; n < multi ; ++n)
2752.   		{
2753.   		if (pipe(fd) == -1)

apps/speed.c:2751:12: Loop condition is true. Entering loop body
2749.   
2750.   	fds=malloc(multi*sizeof *fds);
2751.   	for(n=0 ; n < multi ; ++n)
                   ^
2752.   		{
2753.   		if (pipe(fd) == -1)

apps/speed.c:2753:7: Taking false branch
2751.   	for(n=0 ; n < multi ; ++n)
2752.   		{
2753.   		if (pipe(fd) == -1)
              ^
2754.   			{
2755.   			fprintf(stderr, "pipe failure\n");

apps/speed.c:2758:3: 
2756.   			exit(1);
2757.   			}
2758. > 		fflush(stdout);
2759.   		fflush(stderr);
2760.   		if(fork())

apps/speed.c:2759:3: 
2757.   			}
2758.   		fflush(stdout);
2759. > 		fflush(stderr);
2760.   		if(fork())
2761.   			{

apps/speed.c:2760:6: Taking true branch
2758.   		fflush(stdout);
2759.   		fflush(stderr);
2760.   		if(fork())
             ^
2761.   			{
2762.   			close(fd[1]);

apps/speed.c:2762:4: 
2760.   		if(fork())
2761.   			{
2762. > 			close(fd[1]);
2763.   			fds[n]=fd[0];
2764.   			}

apps/speed.c:2763:4: 
2761.   			{
2762.   			close(fd[1]);
2763. > 			fds[n]=fd[0];
2764.   			}
2765.   		else
