mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-04 20:30:40 +02:00
initialize result before passing it to FindFile()
git-svn-id: trunk@40217 -
This commit is contained in:
parent
4682ac269d
commit
12a22b593d
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user