mirror of
https://github.com/google/brotli.git
synced 2024-12-27 10:20:17 +00:00
Merge pull request #218 from gtalusan/master
allow output file to be overwritten if --repeat
This commit is contained in:
commit
8b7e3c7ba5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user