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


apps/speed.c:2740:1: start of procedure do_multi()
2738.       }
2739.   
2740. > static int do_multi(int multi)
2741.   	{
2742.   	int n;

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

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

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

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

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

apps/speed.c:2755:3: 
2753.   			exit(1);
2754.   			}
2755. > 		fflush(stdout);
2756.   		fflush(stderr);
2757.   		if(fork())

apps/speed.c:2756:3: 
2754.   			}
2755.   		fflush(stdout);
2756. > 		fflush(stderr);
2757.   		if(fork())
2758.   			{

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

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

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