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


apps/speed.c:2543:1: start of procedure do_multi()
2541.   
2542.   #ifdef HAVE_FORK
2543. > static int do_multi(int multi)
2544.   	{
2545.   	int n;

apps/speed.c:2548:2: 
2546.   	int fd[2];
2547.   	int *fds;
2548. > 	static char sep[]=":";
2549.   
2550.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:2550:2: 
2548.   	static char sep[]=":";
2549.   
2550. > 	fds=malloc(multi*sizeof *fds);
2551.   	for(n=0 ; n < multi ; ++n)
2552.   		{

apps/speed.c:2551:6: 
2549.   
2550.   	fds=malloc(multi*sizeof *fds);
2551. > 	for(n=0 ; n < multi ; ++n)
2552.   		{
2553.   		pipe(fd);

apps/speed.c:2551:12: Loop condition is true. Entering loop body
2549.   
2550.   	fds=malloc(multi*sizeof *fds);
2551.   	for(n=0 ; n < multi ; ++n)
                   ^
2552.   		{
2553.   		pipe(fd);

apps/speed.c:2553:3: 
2551.   	for(n=0 ; n < multi ; ++n)
2552.   		{
2553. > 		pipe(fd);
2554.   		if(fork())
2555.   			{

apps/speed.c:2554:6: Taking true branch
2552.   		{
2553.   		pipe(fd);
2554.   		if(fork())
             ^
2555.   			{
2556.   			close(fd[1]);

apps/speed.c:2556:4: 
2554.   		if(fork())
2555.   			{
2556. > 			close(fd[1]);
2557.   			fds[n]=fd[0];
2558.   			}

apps/speed.c:2557:4: 
2555.   			{
2556.   			close(fd[1]);
2557. > 			fds[n]=fd[0];
2558.   			}
2559.   		else
