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


apps/speed.c:1655:1: start of procedure do_multi()
1653.   
1654.   #ifdef HAVE_FORK
1655. > static int do_multi(int multi)
1656.   	{
1657.   	int n;

apps/speed.c:1660:2: 
1658.   	int fd[2];
1659.   	int *fds;
1660. > 	static char sep[]=":";
1661.   
1662.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:1662:2: 
1660.   	static char sep[]=":";
1661.   
1662. > 	fds=malloc(multi*sizeof *fds);
1663.   	for(n=0 ; n < multi ; ++n)
1664.   		{

apps/speed.c:1663:6: 
1661.   
1662.   	fds=malloc(multi*sizeof *fds);
1663. > 	for(n=0 ; n < multi ; ++n)
1664.   		{
1665.   		pipe(fd);

apps/speed.c:1663:12: Loop condition is true. Entering loop body
1661.   
1662.   	fds=malloc(multi*sizeof *fds);
1663.   	for(n=0 ; n < multi ; ++n)
                   ^
1664.   		{
1665.   		pipe(fd);

apps/speed.c:1665:3: 
1663.   	for(n=0 ; n < multi ; ++n)
1664.   		{
1665. > 		pipe(fd);
1666.   		if(fork())
1667.   			{

apps/speed.c:1666:6: Taking true branch
1664.   		{
1665.   		pipe(fd);
1666.   		if(fork())
             ^
1667.   			{
1668.   			close(fd[1]);

apps/speed.c:1668:4: 
1666.   		if(fork())
1667.   			{
1668. > 			close(fd[1]);
1669.   			fds[n]=fd[0];
1670.   			}

apps/speed.c:1669:4: 
1667.   			{
1668.   			close(fd[1]);
1669. > 			fds[n]=fd[0];
1670.   			}
1671.   		else
