We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ea7e9a commit 4d65309Copy full SHA for 4d65309
src/hooks.zig
@@ -192,7 +192,8 @@ fn redirectInit(
192
// However, using handle seems to cause issues on some distros, so we pass
193
// the resolved symbol instead.
194
// TODO: document specific cases
195
- var buf: util.paths.ModulePathBuf = undefined;
+ var buf = alloc.create(util.paths.ModulePathBuf) catch @panic("Out of memory");
196
+ defer alloc.destroy(buf);
197
const path = buf.get(switch (builtin.os.tag) {
198
.windows => handle,
199
else => std.c.dlsym(handle, name),
0 commit comments