std.Build: dupe provided paths for Step.Fmt.create()

This commit is contained in:
Luis Cáceres 2024-03-23 21:07:54 +00:00 committed by Veikka Tuominen
parent 405502286d
commit 29e41c6850

View file

@ -29,8 +29,8 @@ pub fn create(owner: *std.Build, options: Options) *Fmt {
.owner = owner,
.makeFn = make,
}),
.paths = options.paths,
.exclude_paths = options.exclude_paths,
.paths = owner.dupeStrings(options.paths),
.exclude_paths = owner.dupeStrings(options.exclude_paths),
.check = options.check,
};
return self;