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


apps/speed.c:2438:1: start of procedure do_multi()
2436.   
2437.   #ifdef HAVE_FORK
2438. > static int do_multi(int multi)
2439.   	{
2440.   	int n;

apps/speed.c:2443:2: 
2441.   	int fd[2];
2442.   	int *fds;
2443. > 	static char sep[]=":";
2444.   
2445.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:2445:2: 
2443.   	static char sep[]=":";
2444.   
2445. > 	fds=malloc(multi*sizeof *fds);
2446.   	for(n=0 ; n < multi ; ++n)
2447.   		{

apps/speed.c:2446:6: 
2444.   
2445.   	fds=malloc(multi*sizeof *fds);
2446. > 	for(n=0 ; n < multi ; ++n)
2447.   		{
2448.   		pipe(fd);

apps/speed.c:2446:12: Loop condition is true. Entering loop body
2444.   
2445.   	fds=malloc(multi*sizeof *fds);
2446.   	for(n=0 ; n < multi ; ++n)
                   ^
2447.   		{
2448.   		pipe(fd);

apps/speed.c:2448:3: 
2446.   	for(n=0 ; n < multi ; ++n)
2447.   		{
2448. > 		pipe(fd);
2449.   		if(fork())
2450.   			{

apps/speed.c:2449:6: Taking true branch
2447.   		{
2448.   		pipe(fd);
2449.   		if(fork())
             ^
2450.   			{
2451.   			close(fd[1]);

apps/speed.c:2451:4: 
2449.   		if(fork())
2450.   			{
2451. > 			close(fd[1]);
2452.   			fds[n]=fd[0];
2453.   			}

apps/speed.c:2452:4: 
2450.   			{
2451.   			close(fd[1]);
2452. > 			fds[n]=fd[0];
2453.   			}
2454.   		else
