Skip to content

Commit

Permalink
initialize the comment param of BrotliEncoderInitParams
Browse files Browse the repository at this point in the history
Initialize comment as it was throwing a seg fault since it was uninitialized
  • Loading branch information
rachelmsimm committed Aug 21, 2023
1 parent a8d98c0 commit f8a6758
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions c/enc/encode.c
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,7 @@ static void BrotliEncoderInitParams(BrotliEncoderParams* params) {
params->quality = BROTLI_DEFAULT_QUALITY;
params->lgwin = BROTLI_DEFAULT_WINDOW;
params->lgblock = 0;
params->comment = NULL;
params->stream_offset = 0;
params->size_hint = 0;
params->disable_literal_context_modeling = BROTLI_FALSE;
Expand Down

0 comments on commit f8a6758

Please sign in to comment.