session files r3: include <memory>; Out initialised by members
This commit is contained in:
1 parent
796bb8fc9c
commit
d0289b88ba
2 files changed
+4
-1
No files matched your search
@@ -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) {
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include <array>
|
||||
#include <cstring>
|
||||
#include <limits>
|
||||
#include <memory>
|
||||
|
||||
namespace strata::core {
|
||||
namespace {
|
||||
|
||||
Reference in new issue
Block a user