aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/bad_client
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2018-01-22 12:14:56 -0800
committerGravatar Yash Tibrewal <yashkt@google.com>2018-01-22 12:14:56 -0800
commiteea1d9ba70b5371ccc0131ff534f7ed4fefded91 (patch)
tree2cc6c2fb6670ed6080ca7e5cb37b09ebd256ed9a /test/core/bad_client
parent1791df0a72cd6457f152172b65515196df6663fc (diff)
nullptr check
Diffstat (limited to 'test/core/bad_client')
-rw-r--r--test/core/bad_client/bad_client.cc2
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);