ソースを参照

[unix] don't spoil null_pos in get_full_path (affects #9504)

Aleksandr Kuzmenko 5 年 前
コミット
5908d2cd76
1 ファイル変更1 行追加0 行削除
  1. 1 0
      src/core/path.ml

+ 1 - 0
src/core/path.ml

@@ -133,6 +133,7 @@ let get_full_path =
 			let absolute_path =
 				if length > 0 && String.unsafe_get f 0 = '/' then f
 				else if length = 0 then Unix.getcwd()
+				else if f = "?" then f
 				else (Unix.getcwd()) ^ "/" ^ f
 			in
 			let has_trailing_slash =