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


apps/speed.c:1805:1: start of procedure do_multi()
1803.   
1804.   #ifdef HAVE_FORK
1805. > static int do_multi(int multi)
1806.   	{
1807.   	int n;

apps/speed.c:1810:2: 
1808.   	int fd[2];
1809.   	int *fds;
1810. > 	static char sep[]=":";
1811.   
1812.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:1812:2: 
1810.   	static char sep[]=":";
1811.   
1812. > 	fds=malloc(multi*sizeof *fds);
1813.   	for(n=0 ; n < multi ; ++n)
1814.   		{

apps/speed.c:1813:6: 
1811.   
1812.   	fds=malloc(multi*sizeof *fds);
1813. > 	for(n=0 ; n < multi ; ++n)
1814.   		{
1815.   		pipe(fd);

apps/speed.c:1813:12: Loop condition is true. Entering loop body
1811.   
1812.   	fds=malloc(multi*sizeof *fds);
1813.   	for(n=0 ; n < multi ; ++n)
                   ^
1814.   		{
1815.   		pipe(fd);

apps/speed.c:1815:3: 
1813.   	for(n=0 ; n < multi ; ++n)
1814.   		{
1815. > 		pipe(fd);
1816.   		if(fork())
1817.   			{

apps/speed.c:1816:6: Taking true branch
1814.   		{
1815.   		pipe(fd);
1816.   		if(fork())
             ^
1817.   			{
1818.   			close(fd[1]);

apps/speed.c:1818:4: 
1816.   		if(fork())
1817.   			{
1818. > 			close(fd[1]);
1819.   			fds[n]=fd[0];
1820.   			}

apps/speed.c:1819:4: 
1817.   			{
1818.   			close(fd[1]);
1819. > 			fds[n]=fd[0];
1820.   			}
1821.   		else
