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


apps/speed.c:2637:1: start of procedure do_multi()
2635.       }
2636.   
2637. > static int do_multi(int multi)
2638.   	{
2639.   	int n;

apps/speed.c:2642:2: 
2640.   	int fd[2];
2641.   	int *fds;
2642. > 	static char sep[]=":";
2643.   
2644.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:2644:2: 
2642.   	static char sep[]=":";
2643.   
2644. > 	fds=malloc(multi*sizeof *fds);
2645.   	for(n=0 ; n < multi ; ++n)
2646.   		{

apps/speed.c:2645:6: 
2643.   
2644.   	fds=malloc(multi*sizeof *fds);
2645. > 	for(n=0 ; n < multi ; ++n)
2646.   		{
2647.   		if (pipe(fd) == -1)

apps/speed.c:2645:12: Loop condition is true. Entering loop body
2643.   
2644.   	fds=malloc(multi*sizeof *fds);
2645.   	for(n=0 ; n < multi ; ++n)
                   ^
2646.   		{
2647.   		if (pipe(fd) == -1)

apps/speed.c:2647:7: Taking false branch
2645.   	for(n=0 ; n < multi ; ++n)
2646.   		{
2647.   		if (pipe(fd) == -1)
              ^
2648.   			{
2649.   			fprintf(stderr, "pipe failure\n");

apps/speed.c:2652:3: 
2650.   			exit(1);
2651.   			}
2652. > 		fflush(stdout);
2653.   		fflush(stderr);
2654.   		if(fork())

apps/speed.c:2653:3: 
2651.   			}
2652.   		fflush(stdout);
2653. > 		fflush(stderr);
2654.   		if(fork())
2655.   			{

apps/speed.c:2654:6: Taking true branch
2652.   		fflush(stdout);
2653.   		fflush(stderr);
2654.   		if(fork())
             ^
2655.   			{
2656.   			close(fd[1]);

apps/speed.c:2656:4: 
2654.   		if(fork())
2655.   			{
2656. > 			close(fd[1]);
2657.   			fds[n]=fd[0];
2658.   			}

apps/speed.c:2657:4: 
2655.   			{
2656.   			close(fd[1]);
2657. > 			fds[n]=fd[0];
2658.   			}
2659.   		else
