diff options
author | Yash Tibrewal <yashkt@google.com> | 2018-01-22 12:14:56 -0800 |
---|---|---|
committer | Yash Tibrewal <yashkt@google.com> | 2018-01-22 12:14:56 -0800 |
commit | eea1d9ba70b5371ccc0131ff534f7ed4fefded91 (patch) | |
tree | 2cc6c2fb6670ed6080ca7e5cb37b09ebd256ed9a | |
parent | 1791df0a72cd6457f152172b65515196df6663fc (diff) |
nullptr check
-rw-r--r-- | test/core/bad_client/bad_client.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/core/bad_client/bad_client.cc b/test/core/bad_client/bad_client.cc index 07f340bcd1..0c4deaf41c 100644 --- a/test/core/bad_client/bad_client.cc +++ b/test/core/bad_client/bad_client.cc @@ -59,7 +59,7 @@ typedef struct { /* Run the server side validator and set done_thd once done */ static void thd_func(void* arg) { thd_args* a = (thd_args*)arg; - if (a->validator) { + if (a->validator != nullptr) { a->validator(a->server, a->cq, a->registered_method); } gpr_event_set(&a->done_thd, (void*)1); |