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


apps/speed.c:1787:1: start of procedure do_multi()
1785.   
1786.   #ifdef HAVE_FORK
1787. > static int do_multi(int multi)
1788.   	{
1789.   	int n;

apps/speed.c:1792:2: 
1790.   	int fd[2];
1791.   	int *fds;
1792. > 	static char sep[]=":";
1793.   
1794.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:1794:2: 
1792.   	static char sep[]=":";
1793.   
1794. > 	fds=malloc(multi*sizeof *fds);
1795.   	for(n=0 ; n < multi ; ++n)
1796.   		{

apps/speed.c:1795:6: 
1793.   
1794.   	fds=malloc(multi*sizeof *fds);
1795. > 	for(n=0 ; n < multi ; ++n)
1796.   		{
1797.   		pipe(fd);

apps/speed.c:1795:12: Loop condition is true. Entering loop body
1793.   
1794.   	fds=malloc(multi*sizeof *fds);
1795.   	for(n=0 ; n < multi ; ++n)
                   ^
1796.   		{
1797.   		pipe(fd);

apps/speed.c:1797:3: 
1795.   	for(n=0 ; n < multi ; ++n)
1796.   		{
1797. > 		pipe(fd);
1798.   		if(fork())
1799.   			{

apps/speed.c:1798:6: Taking true branch
1796.   		{
1797.   		pipe(fd);
1798.   		if(fork())
             ^
1799.   			{
1800.   			close(fd[1]);

apps/speed.c:1800:4: 
1798.   		if(fork())
1799.   			{
1800. > 			close(fd[1]);
1801.   			fds[n]=fd[0];
1802.   			}

apps/speed.c:1801:4: 
1799.   			{
1800.   			close(fd[1]);
1801. > 			fds[n]=fd[0];
1802.   			}
1803.   		else
