aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport/src/core
diff options
context:
space:
mode:
authorAngelo Mantellini <angelo.mantellini@cisco.com>2021-05-03 12:43:15 +0200
committerAngelo Mantellini <angelo.mantellini@cisco.com>2021-05-03 13:34:52 +0200
commit9b1c12ef3312e4f7355b2218aaf24773b7d541ff (patch)
treee54b3556637829a7b6eac05e742471722e6a4142 /libtransport/src/core
parent07133ac060c2af721941f7b47c52c075df3168ba (diff)
[HICN-703] correct minor cmake issues and memset in manifest_format_fixed.cc
Signed-off-by: Angelo Mantellini <angelo.mantellini@cisco.com> Change-Id: I3ed763941fa58bdfc61b9462d3f3bd268d5a76ed
Diffstat (limited to 'libtransport/src/core')
-rw-r--r--libtransport/src/core/manifest_format_fixed.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libtransport/src/core/manifest_format_fixed.cc b/libtransport/src/core/manifest_format_fixed.cc
index 55280b460..7076a4c90 100644
--- a/libtransport/src/core/manifest_format_fixed.cc
+++ b/libtransport/src/core/manifest_format_fixed.cc
@@ -34,7 +34,7 @@ FixedManifestEncoder::FixedManifestEncoder(Packet &packet,
current_entry_(0),
signature_size_(signature_size) {
if (clear) {
- *manifest_header_ = {0};
+ memset(manifest_header_, 0, sizeof(*manifest_header_));
}
}
@@ -51,7 +51,7 @@ FixedManifestEncoder &FixedManifestEncoder::clearImpl() {
packet_.trimEnd(sizeof(ManifestHeader) +
manifest_header_->number_of_entries * sizeof(ManifestEntry));
current_entry_ = 0;
- *manifest_header_ = {0};
+ memset(manifest_header_, 0, sizeof(*manifest_header_));
return *this;
}