Merge pull request #218 from gtalusan/master

allow output file to be overwritten if --repeat
This commit is contained in:
Eugene Kliuchnikov 2016-07-26 16:41:34 +02:00 committed by GitHub
commit 8b7e3c7ba5

View File

@ -423,7 +423,7 @@ int main(int argc, char** argv) {
clock_start = clock();
for (i = 0; i < repeat; ++i) {
FILE* fin = OpenInputFile(input_path);
FILE* fout = OpenOutputFile(output_path, force);
FILE* fout = OpenOutputFile(output_path, force || repeat);
int is_ok = 0;
if (decompress) {
is_ok = Decompress(fin, fout, dictionary_path);