session files r3: include <memory>; Out initialised by members

This commit is contained in:
Maurizio Verde authored and Niko1221 committed 2026-10-05 19:57:35 +02:00
1 parent 796bb8fc9c
commit d0289b88ba
2 files changed
+4 -1

No files matched your search

+3 -1
View File
@@ -1076,7 +1076,9 @@ bool write_impl(const std::string& path, const SavedConversation& image, const s
header_bytes(h, id, payload);
bool ok = f.write(h, kHeader);
SessionHasher hash(0);
Out out{&f, &hash};
Out out;
out.f = &f;
out.hash = &hash;
if (ok) put_payload(out, image, sources);
ok = ok && out.ok && out.n == payload;
if (ok) {
+1
View File
@@ -6,6 +6,7 @@
#include <array>
#include <cstring>
#include <limits>
#include <memory>
namespace strata::core {
namespace {