--- ray/src/util/rtcontrib.c 2005/06/09 17:27:28 1.14 +++ ray/src/util/rtcontrib.c 2005/06/09 18:33:06 1.16 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: rtcontrib.c,v 1.14 2005/06/09 17:27:28 greg Exp $"; +static const char RCSid[] = "$Id: rtcontrib.c,v 1.16 2005/06/09 18:33:06 greg Exp $"; #endif /* * Gather rtrace output to compute contributions from particular sources @@ -1045,7 +1045,7 @@ recover_output(FILE *fin) break; /* no bin separation */ } if (!lastout) { /* empty output */ - error(WARNING, "no data to recover"); + error(WARNING, "no previous data to recover"); lu_done(&ofiletab); /* reclose all outputs */ return; } @@ -1058,6 +1058,10 @@ recover_output(FILE *fin) mp->nbins = j; ment->data = (char *)mp; } + } + if (lastout < 0) { + error(WARNING, "no output files to recover"); + return; } /* seek on all files */ nvals = lastout * outvsiz;