Skip to content

Commit

Permalink
extras.addSentinel deprecated for alloc.dupeZ
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro committed Jan 23, 2022
1 parent f274fb9 commit cb0caca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/_db.zig
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub fn connect(alloc: std.mem.Allocator, path: string) !void {
f.close();
}

const nulpath = try extras.addSentinel(alloc, u8, abspath, 0);
const nulpath = try alloc.dupeZ(u8, abspath);
db.* = try Engine.connect(nulpath);

try _internal.createTableT(alloc, Remote);
Expand Down

0 comments on commit cb0caca

Please sign in to comment.