summaryrefslogtreecommitdiff
path: root/core/Db.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/Db.zig')
-rw-r--r--core/Db.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Db.zig b/core/Db.zig
index 254eb4a7..eb8ee20c 100644
--- a/core/Db.zig
+++ b/core/Db.zig
@@ -487,7 +487,7 @@ pub const Read = struct {
r.names = if (entry.getCursor(key("names")) catch null) |c| @constCast(c.readBytesAlloc(gpa, 4096) catch &.{}) else &.{};
errdefer if (r.names.len > 0) gpa.free(r.names);
const at = (entry.getCursor(key("session")) catch return error.NotADump) orelse return error.NotADump;
- const session: []u8 = @constCast(at.readBytesAlloc(gpa, null) catch |err| return if (err == error.OutOfMemory) error.OutOfMemory else error.NotADump);
+ const session: []u8 = @constCast(at.readBytesAlloc(gpa, pardes.walk.most(at)) catch |err| return if (err == error.OutOfMemory) error.OutOfMemory else error.NotADump);
var owned: std.ArrayList(u8) = .fromOwnedSlice(session);
r.session_buf = .fromArrayList(gpa, &owned);
errdefer r.session_buf.deinit();