mirror of
https://github.com/google/brotli.git
synced 2025-01-15 02:40:05 +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();
|
clock_start = clock();
|
||||||
for (i = 0; i < repeat; ++i) {
|
for (i = 0; i < repeat; ++i) {
|
||||||
FILE* fin = OpenInputFile(input_path);
|
FILE* fin = OpenInputFile(input_path);
|
||||||
FILE* fout = OpenOutputFile(output_path, force);
|
FILE* fout = OpenOutputFile(output_path, force || repeat);
|
||||||
int is_ok = 0;
|
int is_ok = 0;
|
||||||
if (decompress) {
|
if (decompress) {
|
||||||
is_ok = Decompress(fin, fout, dictionary_path);
|
is_ok = Decompress(fin, fout, dictionary_path);
|
||||||
|
Loading…
Reference in New Issue
Block a user