From 4b06ea7fe73bccd6b4920aa66d2ca9c820f09c04 Mon Sep 17 00:00:00 2001 From: joost Date: Fri, 21 Feb 2020 14:49:57 +0000 Subject: [PATCH] --- Merging (from foreign repository) r44090 into '.': U rtl/unix/sysutils.pp git-svn-id: branches/fixes_3_2@44228 - --- rtl/unix/sysutils.pp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rtl/unix/sysutils.pp b/rtl/unix/sysutils.pp index 6e4f8e917a..2fd45e96cc 100644 --- a/rtl/unix/sysutils.pp +++ b/rtl/unix/sysutils.pp @@ -662,6 +662,9 @@ var SystemFileName: RawByteString; isdir: Boolean; begin + // Do not call fpAccess with an empty name. (Valgrind will complain) + if Filename='' then + Exit(False); SystemFileName:=ToSingleByteFileSystemEncodedFileName(FileName); // Don't use stat. It fails on files >2 GB. // Access obeys the same access rules, so the result should be the same.