aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/slice
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-11-23 08:03:02 -0800
committerGravatar Craig Tiller <ctiller@google.com>2016-11-23 08:03:02 -0800
commit43a516929279ac20febbc0a40873c3d3c8edc4a7 (patch)
treeef29a3468e7a799334d77c970880bb08fbeed2c3 /src/core/lib/slice
parent0960818e546f63131522def31838848370467c25 (diff)
Declare sub_refcnt field
Diffstat (limited to 'src/core/lib/slice')
-rw-r--r--src/core/lib/slice/slice.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/lib/slice/slice.c b/src/core/lib/slice/slice.c
index 2ae97b3035..8188ba9b03 100644
--- a/src/core/lib/slice/slice.c
+++ b/src/core/lib/slice/slice.c
@@ -81,7 +81,8 @@ static void noop_unref(grpc_exec_ctx *exec_ctx, void *unused) {}
static const grpc_slice_refcount_vtable noop_refcount_vtable = {
noop_ref, noop_unref, grpc_slice_default_eq_impl,
grpc_slice_default_hash_impl};
-static grpc_slice_refcount noop_refcount = {&noop_refcount_vtable};
+static grpc_slice_refcount noop_refcount = {&noop_refcount_vtable,
+ &noop_refcount};
grpc_slice grpc_slice_from_static_buffer(const void *s, size_t len) {
grpc_slice slice;