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


apps/speed.c:2356:1: start of procedure do_multi()
2354.       }
2355.   
2356. > static int do_multi(int multi)
2357.   	{
2358.   	int n;

apps/speed.c:2361:2: 
2359.   	int fd[2];
2360.   	int *fds;
2361. > 	static char sep[]=":";
2362.   
2363.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:2363:2: 
2361.   	static char sep[]=":";
2362.   
2363. > 	fds=malloc(multi*sizeof *fds);
2364.   	for(n=0 ; n < multi ; ++n)
2365.   		{

apps/speed.c:2364:6: 
2362.   
2363.   	fds=malloc(multi*sizeof *fds);
2364. > 	for(n=0 ; n < multi ; ++n)
2365.   		{
2366.   		pipe(fd);

apps/speed.c:2364:12: Loop condition is true. Entering loop body
2362.   
2363.   	fds=malloc(multi*sizeof *fds);
2364.   	for(n=0 ; n < multi ; ++n)
                   ^
2365.   		{
2366.   		pipe(fd);

apps/speed.c:2366:3: 
2364.   	for(n=0 ; n < multi ; ++n)
2365.   		{
2366. > 		pipe(fd);
2367.   		if(fork())
2368.   			{

apps/speed.c:2367:6: Taking true branch
2365.   		{
2366.   		pipe(fd);
2367.   		if(fork())
             ^
2368.   			{
2369.   			close(fd[1]);

apps/speed.c:2369:4: 
2367.   		if(fork())
2368.   			{
2369. > 			close(fd[1]);
2370.   			fds[n]=fd[0];
2371.   			}

apps/speed.c:2370:4: 
2368.   			{
2369.   			close(fd[1]);
2370. > 			fds[n]=fd[0];
2371.   			}
2372.   		else
