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


apps/speed.c:2541:1: start of procedure do_multi()
2539.   
2540.   #ifdef HAVE_FORK
2541. > static int do_multi(int multi)
2542.   	{
2543.   	int n;

apps/speed.c:2546:2: 
2544.   	int fd[2];
2545.   	int *fds;
2546. > 	static char sep[]=":";
2547.   
2548.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:2548:2: 
2546.   	static char sep[]=":";
2547.   
2548. > 	fds=malloc(multi*sizeof *fds);
2549.   	for(n=0 ; n < multi ; ++n)
2550.   		{

apps/speed.c:2549:6: 
2547.   
2548.   	fds=malloc(multi*sizeof *fds);
2549. > 	for(n=0 ; n < multi ; ++n)
2550.   		{
2551.   		pipe(fd);

apps/speed.c:2549:12: Loop condition is true. Entering loop body
2547.   
2548.   	fds=malloc(multi*sizeof *fds);
2549.   	for(n=0 ; n < multi ; ++n)
                   ^
2550.   		{
2551.   		pipe(fd);

apps/speed.c:2551:3: 
2549.   	for(n=0 ; n < multi ; ++n)
2550.   		{
2551. > 		pipe(fd);
2552.   		if(fork())
2553.   			{

apps/speed.c:2552:6: Taking true branch
2550.   		{
2551.   		pipe(fd);
2552.   		if(fork())
             ^
2553.   			{
2554.   			close(fd[1]);

apps/speed.c:2554:4: 
2552.   		if(fork())
2553.   			{
2554. > 			close(fd[1]);
2555.   			fds[n]=fd[0];
2556.   			}

apps/speed.c:2555:4: 
2553.   			{
2554.   			close(fd[1]);
2555. > 			fds[n]=fd[0];
2556.   			}
2557.   		else
