Merge pull request #19886 from AspirinSJL/channel_args_fix

Fix channel args cmp
pull/19891/head
Juanli Shen 6 years ago committed by GitHub
commit 7fd1321134
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/core/lib/channel/channel_args.cc

@ -214,6 +214,8 @@ void grpc_channel_args_destroy(grpc_channel_args* a) {
int grpc_channel_args_compare(const grpc_channel_args* a,
const grpc_channel_args* b) {
if (a == nullptr && b == nullptr) return 0;
if (a == nullptr || b == nullptr) return a == nullptr ? -1 : 1;
int c = GPR_ICMP(a->num_args, b->num_args);
if (c != 0) return c;
for (size_t i = 0; i < a->num_args; i++) {

Loading…
Cancel
Save