From 63bc2fb5aa7d611c11dec7229d80bf2295ef18c8 Mon Sep 17 00:00:00 2001 From: Matthew Stevenson Date: Tue, 17 Sep 2019 09:14:38 -0700 Subject: [PATCH] Initialized context_ to nullptr in C core. --- .../security/credentials/tls/grpc_tls_credentials_options.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.h b/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.h index e27eca82d1b..d2b2a80ec1d 100644 --- a/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.h +++ b/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.h @@ -94,7 +94,7 @@ struct grpc_tls_credential_reload_config * grpc_tls_credential_reload_config. It is necessary to implement the C * schedule and cancel functions, given the schedule or cancel function in a * wrapped language. **/ - void* context_; + void* context_ = nullptr; /** config-specific, read-only user data that works for all channels created with a credential using the config. */ void* config_user_data_; @@ -162,7 +162,7 @@ struct grpc_tls_server_authorization_check_config * grpc_tls_server_authorization_check_config. It is necessary to implement * the C schedule and cancel functions, given the schedule or cancel function * in a wrapped language. **/ - void* context_; + void* context_ = nullptr; /** config-specific, read-only user data that works for all channels created with a Credential using the config. */ void* config_user_data_;