Zero out reserved field in node

This commit is contained in:
Craig Tiller 2015-08-19 08:02:38 -07:00
parent 2cbaf1e9ac
commit c95b454a49
1 changed files with 1 additions and 0 deletions

View File

@ -581,6 +581,7 @@ NAN_METHOD(Call::StartBatch) {
uint32_t type = keys->Get(i)->Uint32Value(); uint32_t type = keys->Get(i)->Uint32Value();
ops[i].op = static_cast<grpc_op_type>(type); ops[i].op = static_cast<grpc_op_type>(type);
ops[i].flags = 0; ops[i].flags = 0;
ops[i].reserved = NULL;
switch (type) { switch (type) {
case GRPC_OP_SEND_INITIAL_METADATA: case GRPC_OP_SEND_INITIAL_METADATA:
op.reset(new SendMetadataOp()); op.reset(new SendMetadataOp());