Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(487)

Unified Diff: third_party/brotli/enc/encode.cc

Issue 2027873006: Fix an unitialized variable warning in Brotli. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/brotli/README.chromium ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/brotli/enc/encode.cc
diff --git a/third_party/brotli/enc/encode.cc b/third_party/brotli/enc/encode.cc
index 8b019a6f96209606cc553dfc0735883ec8506de2..b92768e9f7c61a1c96640a2e5f76e65401cb5d48 100644
--- a/third_party/brotli/enc/encode.cc
+++ b/third_party/brotli/enc/encode.cc
@@ -1155,7 +1155,7 @@ int BrotliCompressWithCustomDictionary(size_t dictsize, const uint8_t* dict,
size_t in_bytes = 0;
size_t out_bytes = 0;
- uint8_t* output;
+ uint8_t* output = NULL;
bool final_block = false;
BrotliCompressor compressor(params);
if (dictsize != 0) compressor.BrotliSetCustomDictionary(dictsize, dict);
« no previous file with comments | « third_party/brotli/README.chromium ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698