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


apps/speed.c:1682:1: start of procedure do_multi()
1680.   
1681.   #ifdef HAVE_FORK
1682. > static int do_multi(int multi)
1683.   	{
1684.   	int n;

apps/speed.c:1687:2: 
1685.   	int fd[2];
1686.   	int *fds;
1687. > 	static char sep[]=":";
1688.   
1689.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:1689:2: 
1687.   	static char sep[]=":";
1688.   
1689. > 	fds=malloc(multi*sizeof *fds);
1690.   	for(n=0 ; n < multi ; ++n)
1691.   		{

apps/speed.c:1690:6: 
1688.   
1689.   	fds=malloc(multi*sizeof *fds);
1690. > 	for(n=0 ; n < multi ; ++n)
1691.   		{
1692.   		pipe(fd);

apps/speed.c:1690:12: Loop condition is true. Entering loop body
1688.   
1689.   	fds=malloc(multi*sizeof *fds);
1690.   	for(n=0 ; n < multi ; ++n)
                   ^
1691.   		{
1692.   		pipe(fd);

apps/speed.c:1692:3: 
1690.   	for(n=0 ; n < multi ; ++n)
1691.   		{
1692. > 		pipe(fd);
1693.   		if(fork())
1694.   			{

apps/speed.c:1693:6: Taking true branch
1691.   		{
1692.   		pipe(fd);
1693.   		if(fork())
             ^
1694.   			{
1695.   			close(fd[1]);

apps/speed.c:1695:4: 
1693.   		if(fork())
1694.   			{
1695. > 			close(fd[1]);
1696.   			fds[n]=fd[0];
1697.   			}

apps/speed.c:1696:4: 
1694.   			{
1695.   			close(fd[1]);
1696. > 			fds[n]=fd[0];
1697.   			}
1698.   		else
