aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/core/lib/support/slice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/support/slice.c b/src/core/lib/support/slice.c
index f15a9a1e21..2959a6716f 100644
--- a/src/core/lib/support/slice.c
+++ b/src/core/lib/support/slice.c
@@ -351,7 +351,7 @@ int gpr_slice_str_cmp(gpr_slice a, const char *b) {
int gpr_slice_is_equivalent(gpr_slice a, gpr_slice b) {
if (a.refcount == NULL || b.refcount == NULL) {
- return gpr_slice_cmp(a, b);
+ return gpr_slice_cmp(a, b) == 0;
}
return a.data.refcounted.length == b.data.refcounted.length &&
a.data.refcounted.bytes == b.data.refcounted.bytes;