Skip to content

Commit

Permalink
canard: zero msg_transfer before use
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Jun 7, 2023
1 parent 49a495e commit d4e0f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion canard/publisher.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class Publisher : public Sender {
);
// send the message if encoded successfully
if (len > 0) {
Transfer msg_transfer;
Transfer msg_transfer {};
msg_transfer.transfer_type = CanardTransferTypeBroadcast;
msg_transfer.data_type_id = msgtype::cxx_iface::ID;
msg_transfer.data_type_signature = msgtype::cxx_iface::SIGNATURE;
Expand Down

0 comments on commit d4e0f50

Please sign in to comment.