commit: 1c1692f6d8330ff9f7a691da5f699c1b1508380b
parent 3aa1021d120c813262dd6f789f244b5f86480c63
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Thu, 15 Jun 2023 21:28:46 +0200
main: path::join + free() → path::init + path::string
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/main.ha b/main.ha
@@ -216,8 +216,8 @@ fn check_dir(dirname: str) (void | errors::invalid) = {
continue;
};
- const filename = path::join(dirname, ent.name);
- defer free(filename);
+ const filename_path = path::init(dirname, ent.name)!;
+ const filename = path::string(&filename_path);
if (fs::isdir(ent.ftype)) {
check_dir(filename)?;