aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-11-07 11:32:30 -0800
committerGravatar Muxi Yan <mxyan@google.com>2018-11-07 13:23:38 -0800
commitc9c060c52da12cc55bbd383b1544260ad665dbab (patch)
tree3c95c50df2fa54839c71d5621d9f2b9635c72153
parent9e5d7476ac48b82ee8ce7855c30d3aa5edab5280 (diff)
nit fixes in ChannelArgsUtil
-rw-r--r--src/objective-c/GRPCClient/private/ChannelArgsUtil.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/objective-c/GRPCClient/private/ChannelArgsUtil.m b/src/objective-c/GRPCClient/private/ChannelArgsUtil.m
index b8342a79e7..d9e44b557d 100644
--- a/src/objective-c/GRPCClient/private/ChannelArgsUtil.m
+++ b/src/objective-c/GRPCClient/private/ChannelArgsUtil.m
@@ -31,7 +31,7 @@ static void *copy_pointer_arg(void *p) {
static void destroy_pointer_arg(void *p) {
// Decrease ref count to the object when destroying
- CFRelease((CFTreeRef)p);
+ CFRelease((CFTypeRef)p);
}
static int cmp_pointer_arg(void *p, void *q) { return p == q; }
@@ -52,7 +52,7 @@ void GRPCFreeChannelArgs(grpc_channel_args *channel_args) {
}
grpc_channel_args *GRPCBuildChannelArgs(NSDictionary *dictionary) {
- if (!dictionary) {
+ if (dictionary.count == 0) {
return NULL;
}