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


apps/speed.c:2408:1: start of procedure do_multi()
2406.   
2407.   #ifdef HAVE_FORK
2408. > static int do_multi(int multi)
2409.   	{
2410.   	int n;

apps/speed.c:2413:2: 
2411.   	int fd[2];
2412.   	int *fds;
2413. > 	static char sep[]=":";
2414.   
2415.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:2415:2: 
2413.   	static char sep[]=":";
2414.   
2415. > 	fds=malloc(multi*sizeof *fds);
2416.   	for(n=0 ; n < multi ; ++n)
2417.   		{

apps/speed.c:2416:6: 
2414.   
2415.   	fds=malloc(multi*sizeof *fds);
2416. > 	for(n=0 ; n < multi ; ++n)
2417.   		{
2418.   		pipe(fd);

apps/speed.c:2416:12: Loop condition is true. Entering loop body
2414.   
2415.   	fds=malloc(multi*sizeof *fds);
2416.   	for(n=0 ; n < multi ; ++n)
                   ^
2417.   		{
2418.   		pipe(fd);

apps/speed.c:2418:3: 
2416.   	for(n=0 ; n < multi ; ++n)
2417.   		{
2418. > 		pipe(fd);
2419.   		if(fork())
2420.   			{

apps/speed.c:2419:6: Taking true branch
2417.   		{
2418.   		pipe(fd);
2419.   		if(fork())
             ^
2420.   			{
2421.   			close(fd[1]);

apps/speed.c:2421:4: 
2419.   		if(fork())
2420.   			{
2421. > 			close(fd[1]);
2422.   			fds[n]=fd[0];
2423.   			}

apps/speed.c:2422:4: 
2420.   			{
2421.   			close(fd[1]);
2422. > 			fds[n]=fd[0];
2423.   			}
2424.   		else
