aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/surface
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-04-21 13:58:36 -0700
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-04-21 13:58:36 -0700
commit48b02ecc14dfd6c3ba1a90a90ba41df856c0786b (patch)
tree45a94f48bf089d0874672b620f414f4f3750f747 /src/core/surface
parent062db022b767177b76fe2cdc221244594f29e473 (diff)
Add !=NULL
Diffstat (limited to 'src/core/surface')
-rw-r--r--src/core/surface/call.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/surface/call.c b/src/core/surface/call.c
index df93273505..2949805622 100644
--- a/src/core/surface/call.c
+++ b/src/core/surface/call.c
@@ -1009,7 +1009,7 @@ int grpc_call_recv_metadata(grpc_call_element *elem, grpc_metadata_batch *md) {
lock(call);
is_trailing = call->read_state >= READ_STATE_GOT_INITIAL_METADATA;
- for (l = md->list.head; l; l = l->next) {
+ for (l = md->list.head; l != NULL; l = l->next) {
grpc_mdelem *md = l->md;
grpc_mdstr *key = md->key;
if (key == grpc_channel_get_status_string(call->channel)) {