Skip to content

Commit b5ef315

Browse files
author
Yancey
authored
Fix dist compile error (#8987)
1 parent b3d26cd commit b5ef315

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

paddle/fluid/operators/detail/bytebuffer_stream.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@ google::protobuf::int64 GrpcByteBufferSource::ByteCount() const {
8585

8686
} // namespace detail
8787
} // namespace operators
88-
} // namespace paddle
88+
} // namespace paddle

paddle/fluid/operators/detail/sendrecvop_utils.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ void SerializeToByteBuffer(const std::string& name, framework::Variable* var,
8282
DestroyCallback destroy_callback = [](void* backing) {};
8383

8484
void* buf = malloc(1024);
85-
void* payload;
85+
void* payload = nullptr;
8686
size_t payload_size;
8787
ProtoEncodeHelper e((char*)buf, 1024);
8888
e.WriteString(VarMsg::kVarnameFieldNumber, name);
@@ -297,4 +297,4 @@ void DeserializeFromByteBuffer(const ::grpc::ByteBuffer& msg,
297297

298298
} // namespace detail
299299
} // namespace operators
300-
} // namespace paddle
300+
} // namespace paddle

0 commit comments

Comments
 (0)