diff --git a/src/Prep/ArrayFit/arrayfit.cxx b/src/Prep/ArrayFit/arrayfit.cxx index 4f5b1192..eff3aa3d 100644 --- a/src/Prep/ArrayFit/arrayfit.cxx +++ b/src/Prep/ArrayFit/arrayfit.cxx @@ -146,12 +146,7 @@ int main( int argc, char **argv ) { usage( argv[0] ); } - SGPath outfile = infile.base(); - cout << outfile.str() << endl; - while ( outfile.extension().length() ) { - outfile = outfile.base(); - cout << outfile.str() << endl; - } + SGPath outfile = infile; outfile.concat( ".fit.gz" ); cout << "Input file = " << infile.str() << endl;