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


apps/speed.c:2799:1: start of procedure do_multi()
2797.       }
2798.   
2799. > static int do_multi(int multi)
2800.   	{
2801.   	int n;

apps/speed.c:2804:2: 
2802.   	int fd[2];
2803.   	int *fds;
2804. > 	static char sep[]=":";
2805.   
2806.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:2806:2: 
2804.   	static char sep[]=":";
2805.   
2806. > 	fds=malloc(multi*sizeof *fds);
2807.   	for(n=0 ; n < multi ; ++n)
2808.   		{

apps/speed.c:2807:6: 
2805.   
2806.   	fds=malloc(multi*sizeof *fds);
2807. > 	for(n=0 ; n < multi ; ++n)
2808.   		{
2809.   		if (pipe(fd) == -1)

apps/speed.c:2807:12: Loop condition is true. Entering loop body
2805.   
2806.   	fds=malloc(multi*sizeof *fds);
2807.   	for(n=0 ; n < multi ; ++n)
                   ^
2808.   		{
2809.   		if (pipe(fd) == -1)

apps/speed.c:2809:7: Taking false branch
2807.   	for(n=0 ; n < multi ; ++n)
2808.   		{
2809.   		if (pipe(fd) == -1)
              ^
2810.   			{
2811.   			fprintf(stderr, "pipe failure\n");

apps/speed.c:2814:3: 
2812.   			exit(1);
2813.   			}
2814. > 		fflush(stdout);
2815.   		fflush(stderr);
2816.   		if(fork())

apps/speed.c:2815:3: 
2813.   			}
2814.   		fflush(stdout);
2815. > 		fflush(stderr);
2816.   		if(fork())
2817.   			{

apps/speed.c:2816:6: Taking true branch
2814.   		fflush(stdout);
2815.   		fflush(stderr);
2816.   		if(fork())
             ^
2817.   			{
2818.   			close(fd[1]);

apps/speed.c:2818:4: 
2816.   		if(fork())
2817.   			{
2818. > 			close(fd[1]);
2819.   			fds[n]=fd[0];
2820.   			}

apps/speed.c:2819:4: 
2817.   			{
2818.   			close(fd[1]);
2819. > 			fds[n]=fd[0];
2820.   			}
2821.   		else
