diff options
author | Eugene Kliuchnikov <eustas@google.com> | 2017-07-21 10:07:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-21 10:07:24 +0200 |
commit | 52441069ef31c3c02a4aecad727f2ec5a17ab68b (patch) | |
tree | d2a7e7d0b60c9b365ba4d871bf8e535b6e9abc2e /c/tools/brotli.c | |
parent | 172a378debedec81eb19747c96c28a81d917d284 (diff) | |
download | brotli-52441069ef31c3c02a4aecad727f2ec5a17ab68b.zip brotli-52441069ef31c3c02a4aecad727f2ec5a17ab68b.tar.gz brotli-52441069ef31c3c02a4aecad727f2ec5a17ab68b.tar.bz2 |
Update (#574)custom-dictionary
* Update
* decoder: better behavior after failure
* encoder: replace "len_x_code" with delta
* research: add experimental dictionary generator
* python: test combing
Diffstat (limited to 'c/tools/brotli.c')
-rwxr-xr-x | c/tools/brotli.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/c/tools/brotli.c b/c/tools/brotli.c index 637e94e..8b6f9e2 100755 --- a/c/tools/brotli.c +++ b/c/tools/brotli.c @@ -681,12 +681,14 @@ static BROTLI_BOOL CloseFiles(Context* context, BROTLI_BOOL success) { } } - if (fclose(context->fin) != 0) { - if (is_ok) { - fprintf(stderr, "fclose failed [%s]: %s\n", - PrintablePath(context->current_input_path), strerror(errno)); + if (context->fin) { + if (fclose(context->fin) != 0) { + if (is_ok) { + fprintf(stderr, "fclose failed [%s]: %s\n", + PrintablePath(context->current_input_path), strerror(errno)); + } + is_ok = BROTLI_FALSE; } - is_ok = BROTLI_FALSE; } if (success && context->junk_source) { unlink(context->current_input_path); |