diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-11-19 07:48:53 -0800 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-11-19 07:48:53 -0800 |
commit | 0e72ede40582c43c404e3b211464cca3bc5b6bc6 (patch) | |
tree | 43ea561bd8555f154b69003e16ce1db3d7cfba53 /test/core/bad_client | |
parent | 328d4b18a52b7f4a59e05d89590b2bed77b61aef (diff) |
Use static metadata table in metadata.c
Diffstat (limited to 'test/core/bad_client')
-rw-r--r-- | test/core/bad_client/bad_client.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/core/bad_client/bad_client.c b/test/core/bad_client/bad_client.c index ed46e7b009..fb2cd2d85b 100644 --- a/test/core/bad_client/bad_client.c +++ b/test/core/bad_client/bad_client.c @@ -84,7 +84,7 @@ void grpc_run_bad_client_test(grpc_bad_client_server_side_validator validator, gpr_thd_id id; char *hex; grpc_transport *transport; - grpc_mdctx *mdctx = grpc_mdctx_create(); + grpc_mdctx *mdctx; gpr_slice slice = gpr_slice_from_copied_buffer(client_payload, client_payload_length); gpr_slice_buffer outgoing; @@ -102,6 +102,8 @@ void grpc_run_bad_client_test(grpc_bad_client_server_side_validator validator, /* Init grpc */ grpc_init(); + mdctx = grpc_mdctx_create(); + /* Create endpoints */ sfd = grpc_iomgr_create_endpoint_pair("fixture", 65536); |