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


apps/speed.c:2396:1: start of procedure do_multi()
2394.   
2395.   #ifdef HAVE_FORK
2396. > static int do_multi(int multi)
2397.   	{
2398.   	int n;

apps/speed.c:2401:2: 
2399.   	int fd[2];
2400.   	int *fds;
2401. > 	static char sep[]=":";
2402.   
2403.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:2403:2: 
2401.   	static char sep[]=":";
2402.   
2403. > 	fds=malloc(multi*sizeof *fds);
2404.   	for(n=0 ; n < multi ; ++n)
2405.   		{

apps/speed.c:2404:6: 
2402.   
2403.   	fds=malloc(multi*sizeof *fds);
2404. > 	for(n=0 ; n < multi ; ++n)
2405.   		{
2406.   		pipe(fd);

apps/speed.c:2404:12: Loop condition is true. Entering loop body
2402.   
2403.   	fds=malloc(multi*sizeof *fds);
2404.   	for(n=0 ; n < multi ; ++n)
                   ^
2405.   		{
2406.   		pipe(fd);

apps/speed.c:2406:3: 
2404.   	for(n=0 ; n < multi ; ++n)
2405.   		{
2406. > 		pipe(fd);
2407.   		if(fork())
2408.   			{

apps/speed.c:2407:6: Taking true branch
2405.   		{
2406.   		pipe(fd);
2407.   		if(fork())
             ^
2408.   			{
2409.   			close(fd[1]);

apps/speed.c:2409:4: 
2407.   		if(fork())
2408.   			{
2409. > 			close(fd[1]);
2410.   			fds[n]=fd[0];
2411.   			}

apps/speed.c:2410:4: 
2408.   			{
2409.   			close(fd[1]);
2410. > 			fds[n]=fd[0];
2411.   			}
2412.   		else
