diff --git a/src/core/lib/gprpp/time.cc b/src/core/lib/gprpp/time.cc index 81b91954c0f..f35dda2cced 100644 --- a/src/core/lib/gprpp/time.cc +++ b/src/core/lib/gprpp/time.cc @@ -32,9 +32,9 @@ std::atomic g_process_epoch_seconds; std::atomic g_process_epoch_cycles; GPR_ATTRIBUTE_NOINLINE std::pair InitTime() { - gpr_cycle_counter cycles_start; - gpr_cycle_counter cycles_end; - int64_t process_epoch_seconds; + gpr_cycle_counter cycles_start = 0; + gpr_cycle_counter cycles_end = 0; + int64_t process_epoch_seconds = 0; // Check the current time... if we end up with zero, try again after 100ms. // If it doesn't advance after sleeping for 1100ms, crash the process. diff --git a/test/core/iomgr/ios/CFStreamTests/CFStreamEndpointTests.mm b/test/core/iomgr/ios/CFStreamTests/CFStreamEndpointTests.mm index a990dd35c80..ef8183f9d75 100644 --- a/test/core/iomgr/ios/CFStreamTests/CFStreamEndpointTests.mm +++ b/test/core/iomgr/ios/CFStreamTests/CFStreamEndpointTests.mm @@ -127,7 +127,8 @@ static bool compare_slice_buffer_with_buffer(grpc_slice_buffer *slices, const ch const grpc_channel_args *args = grpc_core::CoreConfiguration::Get().channel_args_preconditioning().PreconditionChannelArgs( nullptr); - grpc_tcp_client_connect(&done, &ep_, nullptr, args, &resolved_addr, GRPC_MILLIS_INF_FUTURE); + grpc_tcp_client_connect(&done, &ep_, nullptr, args, &resolved_addr, + grpc_core::Timestamp::InfFuture()); grpc_channel_args_destroy(args); /* await the connection */