initialize result before passing it to FindFile()

git-svn-id: trunk@40217 -
This commit is contained in:
Károly Balogh 2018-11-04 18:03:00 +00:00
parent 4682ac269d
commit 12a22b593d

View File

@ -373,14 +373,14 @@ Function TLinkerBSD.GetDarwinPrtobjName(isdll: boolean): TCmdStr;
var
startupfile: TCmdStr;
begin
result:='';
startupfile:=GetDarwinCrt1ObjName(isdll);
if startupfile<>'' then
begin
if not librarysearchpath.FindFile(startupfile,false,result) then
result:='/usr/lib/'+startupfile
end
else
result:='';
result:=maybequoted(result);
end;