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


apps/speed.c:2546:1: start of procedure do_multi()
2544.   
2545.   #ifdef HAVE_FORK
2546. > static int do_multi(int multi)
2547.   	{
2548.   	int n;

apps/speed.c:2551:2: 
2549.   	int fd[2];
2550.   	int *fds;
2551. > 	static char sep[]=":";
2552.   
2553.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:2553:2: 
2551.   	static char sep[]=":";
2552.   
2553. > 	fds=malloc(multi*sizeof *fds);
2554.   	for(n=0 ; n < multi ; ++n)
2555.   		{

apps/speed.c:2554:6: 
2552.   
2553.   	fds=malloc(multi*sizeof *fds);
2554. > 	for(n=0 ; n < multi ; ++n)
2555.   		{
2556.   		pipe(fd);

apps/speed.c:2554:12: Loop condition is true. Entering loop body
2552.   
2553.   	fds=malloc(multi*sizeof *fds);
2554.   	for(n=0 ; n < multi ; ++n)
                   ^
2555.   		{
2556.   		pipe(fd);

apps/speed.c:2556:3: 
2554.   	for(n=0 ; n < multi ; ++n)
2555.   		{
2556. > 		pipe(fd);
2557.   		if(fork())
2558.   			{

apps/speed.c:2557:6: Taking true branch
2555.   		{
2556.   		pipe(fd);
2557.   		if(fork())
             ^
2558.   			{
2559.   			close(fd[1]);

apps/speed.c:2559:4: 
2557.   		if(fork())
2558.   			{
2559. > 			close(fd[1]);
2560.   			fds[n]=fd[0];
2561.   			}

apps/speed.c:2560:4: 
2558.   			{
2559.   			close(fd[1]);
2560. > 			fds[n]=fd[0];
2561.   			}
2562.   		else
