mirror of
https://github.com/google/brotli.git
synced 2024-11-22 03:30:07 +00:00
Fixed issue when linking with C++/CLI application
The Microsoft Visual C++ compiler, or specifically linker, generates an error about a possible uninitialized pointer when linking if `output` is left uninitialized. This fixes that issue.
This commit is contained in:
parent
a08855c715
commit
635b3dc1f9
@ -629,7 +629,7 @@ int BrotliCompressWithCustomDictionary(size_t dictsize, const uint8_t* dict,
|
|||||||
BrotliIn* in, BrotliOut* out) {
|
BrotliIn* in, BrotliOut* out) {
|
||||||
size_t in_bytes = 0;
|
size_t in_bytes = 0;
|
||||||
size_t out_bytes = 0;
|
size_t out_bytes = 0;
|
||||||
uint8_t* output;
|
uint8_t* output = NULL;
|
||||||
bool final_block = false;
|
bool final_block = false;
|
||||||
BrotliCompressor compressor(params);
|
BrotliCompressor compressor(params);
|
||||||
if (dictsize != 0) compressor.BrotliSetCustomDictionary(dictsize, dict);
|
if (dictsize != 0) compressor.BrotliSetCustomDictionary(dictsize, dict);
|
||||||
|
Loading…
Reference in New Issue
Block a user