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


apps/speed.c:2422:1: start of procedure do_multi()
2420.   
2421.   #ifdef HAVE_FORK
2422. > static int do_multi(int multi)
2423.   	{
2424.   	int n;

apps/speed.c:2427:2: 
2425.   	int fd[2];
2426.   	int *fds;
2427. > 	static char sep[]=":";
2428.   
2429.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:2429:2: 
2427.   	static char sep[]=":";
2428.   
2429. > 	fds=malloc(multi*sizeof *fds);
2430.   	for(n=0 ; n < multi ; ++n)
2431.   		{

apps/speed.c:2430:6: 
2428.   
2429.   	fds=malloc(multi*sizeof *fds);
2430. > 	for(n=0 ; n < multi ; ++n)
2431.   		{
2432.   		pipe(fd);

apps/speed.c:2430:12: Loop condition is true. Entering loop body
2428.   
2429.   	fds=malloc(multi*sizeof *fds);
2430.   	for(n=0 ; n < multi ; ++n)
                   ^
2431.   		{
2432.   		pipe(fd);

apps/speed.c:2432:3: 
2430.   	for(n=0 ; n < multi ; ++n)
2431.   		{
2432. > 		pipe(fd);
2433.   		if(fork())
2434.   			{

apps/speed.c:2433:6: Taking true branch
2431.   		{
2432.   		pipe(fd);
2433.   		if(fork())
             ^
2434.   			{
2435.   			close(fd[1]);

apps/speed.c:2435:4: 
2433.   		if(fork())
2434.   			{
2435. > 			close(fd[1]);
2436.   			fds[n]=fd[0];
2437.   			}

apps/speed.c:2436:4: 
2434.   			{
2435.   			close(fd[1]);
2436. > 			fds[n]=fd[0];
2437.   			}
2438.   		else
