fix: calling filesystem::absolute on empty string

This commit is contained in:
2026-01-10 19:55:55 +03:00
parent 622f15aea2
commit 3f8ca14073
+2 -2
View File
@@ -54,7 +54,7 @@ bool in_array(const string &value, const vector<string> &array);
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
path input_path = ""; path input_path = current_path();
path output_path = "mod.msp"; path output_path = "mod.msp";
path manifest_path = "manifest"; path manifest_path = "manifest";
@@ -68,7 +68,7 @@ int main(int argc, char *argv[])
if (check_pathes(input_path, output_path, manifest_path) == 1) if (check_pathes(input_path, output_path, manifest_path) == 1)
return 0; return 0;
path current_dir = absolute(""); path current_dir = current_path();
path temp_dir = current_dir / "temp/"; path temp_dir = current_dir / "temp/";
if (exists(temp_dir)) if (exists(temp_dir))