diff options
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCChannel.m | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCChannel.m b/src/objective-c/GRPCClient/private/GRPCChannel.m index 26efe90abd..87646f7895 100644 --- a/src/objective-c/GRPCClient/private/GRPCChannel.m +++ b/src/objective-c/GRPCClient/private/GRPCChannel.m @@ -188,8 +188,7 @@ static grpc_channel_args *BuildChannelArgs(NSDictionary *dictionary) { if (timeout < 0) { timeout = 0; } - grpc_slice host_slice; - memset(&host_slice, 0, sizeof(host_slice)); + grpc_slice host_slice = grpc_empty_slice(); if (serverName) { host_slice = grpc_slice_from_copied_string(serverName.UTF8String); } |