aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c
diff options
context:
space:
mode:
authorGravatar Noah Eisen <ncteisen@google.com>2018-02-14 17:20:13 -0800
committerGravatar Noah Eisen <ncteisen@google.com>2018-02-14 17:20:13 -0800
commitdda548f6d7ffb69bdbe4105e2dfcec29e78d14aa (patch)
tree90fc5c6b34fdab84d7f98e9bb62ed5efb5061efc /src/objective-c
parent22f363981a32953f9eee9291a6b46a499df08080 (diff)
Fix comiler warning
Diffstat (limited to 'src/objective-c')
-rw-r--r--src/objective-c/GRPCClient/private/GRPCChannel.m3
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);
}