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


apps/speed.c:2779:1: start of procedure do_multi()
2777.       }
2778.   
2779. > static int do_multi(int multi)
2780.   	{
2781.   	int n;

apps/speed.c:2784:2: 
2782.   	int fd[2];
2783.   	int *fds;
2784. > 	static char sep[]=":";
2785.   
2786.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:2786:2: 
2784.   	static char sep[]=":";
2785.   
2786. > 	fds=malloc(multi*sizeof *fds);
2787.   	for(n=0 ; n < multi ; ++n)
2788.   		{

apps/speed.c:2787:6: 
2785.   
2786.   	fds=malloc(multi*sizeof *fds);
2787. > 	for(n=0 ; n < multi ; ++n)
2788.   		{
2789.   		if (pipe(fd) == -1)

apps/speed.c:2787:12: Loop condition is true. Entering loop body
2785.   
2786.   	fds=malloc(multi*sizeof *fds);
2787.   	for(n=0 ; n < multi ; ++n)
                   ^
2788.   		{
2789.   		if (pipe(fd) == -1)

apps/speed.c:2789:7: Taking false branch
2787.   	for(n=0 ; n < multi ; ++n)
2788.   		{
2789.   		if (pipe(fd) == -1)
              ^
2790.   			{
2791.   			fprintf(stderr, "pipe failure\n");

apps/speed.c:2794:3: 
2792.   			exit(1);
2793.   			}
2794. > 		fflush(stdout);
2795.   		fflush(stderr);
2796.   		if(fork())

apps/speed.c:2795:3: 
2793.   			}
2794.   		fflush(stdout);
2795. > 		fflush(stderr);
2796.   		if(fork())
2797.   			{

apps/speed.c:2796:6: Taking true branch
2794.   		fflush(stdout);
2795.   		fflush(stderr);
2796.   		if(fork())
             ^
2797.   			{
2798.   			close(fd[1]);

apps/speed.c:2798:4: 
2796.   		if(fork())
2797.   			{
2798. > 			close(fd[1]);
2799.   			fds[n]=fd[0];
2800.   			}

apps/speed.c:2799:4: 
2797.   			{
2798.   			close(fd[1]);
2799. > 			fds[n]=fd[0];
2800.   			}
2801.   		else
