Skip to content

Commit

Permalink
Fix FromProto for FlightDescriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
David Li authored and David Li committed Feb 5, 2019
1 parent a11a5ac commit 138141f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/flight/internal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Status FromProto(const pb::FlightDescriptor& pb_descriptor,
FlightDescriptor* descriptor) {
if (pb_descriptor.type() == pb::FlightDescriptor::PATH) {
descriptor->type = FlightDescriptor::PATH;
descriptor->path.resize(pb_descriptor.path_size());
descriptor->path.reserve(pb_descriptor.path_size());
for (int i = 0; i < pb_descriptor.path_size(); ++i) {
descriptor->path.emplace_back(pb_descriptor.path(i));
}
Expand Down

0 comments on commit 138141f

Please sign in to comment.