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


apps/speed.c:2557:1: start of procedure do_multi()
2555.   
2556.   #ifdef HAVE_FORK
2557. > static int do_multi(int multi)
2558.   	{
2559.   	int n;

apps/speed.c:2562:2: 
2560.   	int fd[2];
2561.   	int *fds;
2562. > 	static char sep[]=":";
2563.   
2564.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:2564:2: 
2562.   	static char sep[]=":";
2563.   
2564. > 	fds=malloc(multi*sizeof *fds);
2565.   	for(n=0 ; n < multi ; ++n)
2566.   		{

apps/speed.c:2565:6: 
2563.   
2564.   	fds=malloc(multi*sizeof *fds);
2565. > 	for(n=0 ; n < multi ; ++n)
2566.   		{
2567.   		pipe(fd);

apps/speed.c:2565:12: Loop condition is true. Entering loop body
2563.   
2564.   	fds=malloc(multi*sizeof *fds);
2565.   	for(n=0 ; n < multi ; ++n)
                   ^
2566.   		{
2567.   		pipe(fd);

apps/speed.c:2567:3: 
2565.   	for(n=0 ; n < multi ; ++n)
2566.   		{
2567. > 		pipe(fd);
2568.   		if(fork())
2569.   			{

apps/speed.c:2568:6: Taking true branch
2566.   		{
2567.   		pipe(fd);
2568.   		if(fork())
             ^
2569.   			{
2570.   			close(fd[1]);

apps/speed.c:2570:4: 
2568.   		if(fork())
2569.   			{
2570. > 			close(fd[1]);
2571.   			fds[n]=fd[0];
2572.   			}

apps/speed.c:2571:4: 
2569.   			{
2570.   			close(fd[1]);
2571. > 			fds[n]=fd[0];
2572.   			}
2573.   		else
