diff options
Diffstat (limited to 'src/objective-c')
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCChannel.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCChannel.m b/src/objective-c/GRPCClient/private/GRPCChannel.m index b78b14f2af..26efe90abd 100644 --- a/src/objective-c/GRPCClient/private/GRPCChannel.m +++ b/src/objective-c/GRPCClient/private/GRPCChannel.m @@ -189,6 +189,7 @@ static grpc_channel_args *BuildChannelArgs(NSDictionary *dictionary) { timeout = 0; } grpc_slice host_slice; + memset(&host_slice, 0, sizeof(host_slice)); if (serverName) { host_slice = grpc_slice_from_copied_string(serverName.UTF8String); } |