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


apps/speed.c:2593:1: start of procedure do_multi()
2591.       }
2592.   
2593. > static int do_multi(int multi)
2594.   	{
2595.   	int n;

apps/speed.c:2598:2: 
2596.   	int fd[2];
2597.   	int *fds;
2598. > 	static char sep[]=":";
2599.   
2600.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:2600:2: 
2598.   	static char sep[]=":";
2599.   
2600. > 	fds=malloc(multi*sizeof *fds);
2601.   	for(n=0 ; n < multi ; ++n)
2602.   		{

apps/speed.c:2601:6: 
2599.   
2600.   	fds=malloc(multi*sizeof *fds);
2601. > 	for(n=0 ; n < multi ; ++n)
2602.   		{
2603.   		pipe(fd);

apps/speed.c:2601:12: Loop condition is true. Entering loop body
2599.   
2600.   	fds=malloc(multi*sizeof *fds);
2601.   	for(n=0 ; n < multi ; ++n)
                   ^
2602.   		{
2603.   		pipe(fd);

apps/speed.c:2603:3: 
2601.   	for(n=0 ; n < multi ; ++n)
2602.   		{
2603. > 		pipe(fd);
2604.   		fflush(stdout);
2605.   		fflush(stderr);

apps/speed.c:2604:3: 
2602.   		{
2603.   		pipe(fd);
2604. > 		fflush(stdout);
2605.   		fflush(stderr);
2606.   		if(fork())

apps/speed.c:2605:3: 
2603.   		pipe(fd);
2604.   		fflush(stdout);
2605. > 		fflush(stderr);
2606.   		if(fork())
2607.   			{

apps/speed.c:2606:6: Taking true branch
2604.   		fflush(stdout);
2605.   		fflush(stderr);
2606.   		if(fork())
             ^
2607.   			{
2608.   			close(fd[1]);

apps/speed.c:2608:4: 
2606.   		if(fork())
2607.   			{
2608. > 			close(fd[1]);
2609.   			fds[n]=fd[0];
2610.   			}

apps/speed.c:2609:4: 
2607.   			{
2608.   			close(fd[1]);
2609. > 			fds[n]=fd[0];
2610.   			}
2611.   		else
