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


apps/speed.c:1660:1: start of procedure do_multi()
1658.   
1659.   #ifdef HAVE_FORK
1660. > static int do_multi(int multi)
1661.   	{
1662.   	int n;

apps/speed.c:1665:2: 
1663.   	int fd[2];
1664.   	int *fds;
1665. > 	static char sep[]=":";
1666.   
1667.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:1667:2: 
1665.   	static char sep[]=":";
1666.   
1667. > 	fds=malloc(multi*sizeof *fds);
1668.   	for(n=0 ; n < multi ; ++n)
1669.   		{

apps/speed.c:1668:6: 
1666.   
1667.   	fds=malloc(multi*sizeof *fds);
1668. > 	for(n=0 ; n < multi ; ++n)
1669.   		{
1670.   		pipe(fd);

apps/speed.c:1668:12: Loop condition is true. Entering loop body
1666.   
1667.   	fds=malloc(multi*sizeof *fds);
1668.   	for(n=0 ; n < multi ; ++n)
                   ^
1669.   		{
1670.   		pipe(fd);

apps/speed.c:1670:3: 
1668.   	for(n=0 ; n < multi ; ++n)
1669.   		{
1670. > 		pipe(fd);
1671.   		if(fork())
1672.   			{

apps/speed.c:1671:6: Taking true branch
1669.   		{
1670.   		pipe(fd);
1671.   		if(fork())
             ^
1672.   			{
1673.   			close(fd[1]);

apps/speed.c:1673:4: 
1671.   		if(fork())
1672.   			{
1673. > 			close(fd[1]);
1674.   			fds[n]=fd[0];
1675.   			}

apps/speed.c:1674:4: 
1672.   			{
1673.   			close(fd[1]);
1674. > 			fds[n]=fd[0];
1675.   			}
1676.   		else
