grpc: init compression_algorithm_ in ClientContext ctor

`compression_algorithm_` could be a random value because not
initialized in ctor.
This commit is contained in:
Lei Huang 2019-01-17 16:15:44 -07:00 committed by l8huang
parent 10fa278660
commit 3bd12ee2a8
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ ClientContext::ClientContext()
deadline_(gpr_inf_future(GPR_CLOCK_REALTIME)),
census_context_(nullptr),
propagate_from_call_(nullptr),
compression_algorithm_(GRPC_COMPRESS_NONE),
initial_metadata_corked_(false) {
g_client_callbacks->DefaultConstructor(this);
}