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


apps/speed.c:2705:1: start of procedure do_multi()
2703.       }
2704.   
2705. > static int do_multi(int multi)
2706.   	{
2707.   	int n;

apps/speed.c:2710:2: 
2708.   	int fd[2];
2709.   	int *fds;
2710. > 	static char sep[]=":";
2711.   
2712.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:2712:2: 
2710.   	static char sep[]=":";
2711.   
2712. > 	fds=malloc(multi*sizeof *fds);
2713.   	for(n=0 ; n < multi ; ++n)
2714.   		{

apps/speed.c:2713:6: 
2711.   
2712.   	fds=malloc(multi*sizeof *fds);
2713. > 	for(n=0 ; n < multi ; ++n)
2714.   		{
2715.   		if (pipe(fd) == -1)

apps/speed.c:2713:12: Loop condition is true. Entering loop body
2711.   
2712.   	fds=malloc(multi*sizeof *fds);
2713.   	for(n=0 ; n < multi ; ++n)
                   ^
2714.   		{
2715.   		if (pipe(fd) == -1)

apps/speed.c:2715:7: Taking false branch
2713.   	for(n=0 ; n < multi ; ++n)
2714.   		{
2715.   		if (pipe(fd) == -1)
              ^
2716.   			{
2717.   			fprintf(stderr, "pipe failure\n");

apps/speed.c:2720:3: 
2718.   			exit(1);
2719.   			}
2720. > 		fflush(stdout);
2721.   		fflush(stderr);
2722.   		if(fork())

apps/speed.c:2721:3: 
2719.   			}
2720.   		fflush(stdout);
2721. > 		fflush(stderr);
2722.   		if(fork())
2723.   			{

apps/speed.c:2722:6: Taking true branch
2720.   		fflush(stdout);
2721.   		fflush(stderr);
2722.   		if(fork())
             ^
2723.   			{
2724.   			close(fd[1]);

apps/speed.c:2724:4: 
2722.   		if(fork())
2723.   			{
2724. > 			close(fd[1]);
2725.   			fds[n]=fd[0];
2726.   			}

apps/speed.c:2725:4: 
2723.   			{
2724.   			close(fd[1]);
2725. > 			fds[n]=fd[0];
2726.   			}
2727.   		else
