diff options
author | Craig Tiller <ctiller@google.com> | 2015-04-24 08:49:10 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-04-24 08:49:10 -0700 |
commit | 4e87e0076716338039b747a15a1df37f721b188a (patch) | |
tree | 619ae4eea8707b6342b43e7cdf603e9e205019a7 /src/core | |
parent | 48b9fde74e291d1fcbc2f975c58befb44d7e90d9 (diff) |
Fix uninitialized variable
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/security/auth.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/security/auth.c b/src/core/security/auth.c index 5d241781f1..4dbc25675b 100644 --- a/src/core/security/auth.c +++ b/src/core/security/auth.c @@ -173,6 +173,7 @@ static void auth_start_transport_op(grpc_call_element *elem, for (i = 0; i < nops; i++) { grpc_stream_op *sop = &ops[i]; if (sop->type != GRPC_OP_METADATA) continue; + calld->op_md_idx = i; calld->sent_initial_metadata = 1; for (l = sop->data.metadata.list.head; l != NULL; l = l->next) { grpc_mdelem *md = l->md; @@ -230,6 +231,7 @@ static void init_call_elem(grpc_call_element *elem, calld->creds = NULL; calld->host = NULL; calld->method = NULL; + calld->sent_initial_metadata = 0; GPR_ASSERT(!initial_op || !initial_op->send_ops); } |