From 48b02ecc14dfd6c3ba1a90a90ba41df856c0786b Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Tue, 21 Apr 2015 13:58:36 -0700 Subject: [PATCH] Add !=NULL --- src/core/surface/call.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/surface/call.c b/src/core/surface/call.c index df93273505c..29498056220 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)) {