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


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

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

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

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

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

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

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

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

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