Skip to content

Lightpanda: the headless browser designed for AI and automation

`Config`: dupe received `dir` from arg iterator

Halil Durak03cfdbe56797
diff --git a/src/Config.zig b/src/Config.zig
index bafe3bf4c..db7d75d16 100644
--- a/src/Config.zig
+++ b/src/Config.zig
@@ -109,7 +109,7 @@ fn caPathValidator(
return error.InvalidArgument;
}
- return list.append(allocator, dir);
+ return list.append(allocator, try allocator.dupeZ(u8, dir));
}
/// Common CLI args.