aboutsummaryrefslogtreecommitdiff
path: root/c/tools/brotli.c
diff options
context:
space:
mode:
authorEugene Kliuchnikov <eustas@google.com>2017-06-13 12:52:56 +0200
committerGitHub <noreply@github.com>2017-06-13 12:52:56 +0200
commit05d5f3d77a3445b464c230b382855979e1b89fef (patch)
tree452a38544c2107493ad0ff5cb92545991748f5ab /c/tools/brotli.c
parent0fceb906eceefde1548c2ba2b215cc4473ca5175 (diff)
downloadbrotli-05d5f3d77a3445b464c230b382855979e1b89fef.zip
brotli-05d5f3d77a3445b464c230b382855979e1b89fef.tar.gz
brotli-05d5f3d77a3445b464c230b382855979e1b89fef.tar.bz2
Update (#560)
Update: * add decoder API to avoid ringbuffer reallocation * fix MSVC warnings * remove dead code
Diffstat (limited to 'c/tools/brotli.c')
-rwxr-xr-xc/tools/brotli.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/tools/brotli.c b/c/tools/brotli.c
index ff0cabf..3cf6297 100755
--- a/c/tools/brotli.c
+++ b/c/tools/brotli.c
@@ -697,8 +697,8 @@ static BROTLI_BOOL CloseFiles(Context* context, BROTLI_BOOL success) {
static const size_t kFileBufferSize = 1 << 16;
static BROTLI_BOOL DecompressFile(Context* context, BrotliDecoderState* s) {
- size_t available_in;
- const uint8_t* next_in;
+ size_t available_in = 0;
+ const uint8_t* next_in = NULL;
size_t available_out = kFileBufferSize;
uint8_t* next_out = context->output;
BrotliDecoderResult result = BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT;