Packager: fixed uninitialized variable

git-svn-id: trunk@28508 -
This commit is contained in:
martin 2010-11-27 13:00:25 +00:00
parent 732d614598
commit f2608b3106

View File

@ -548,8 +548,10 @@ begin
NewPkgLink.NotFoundCount:=
XMLConfig.GetValue(ItemPath+'NotFoundCount/Value',0);
CfgStrToDate(XMLConfig.GetValue(ItemPath+'LastUsed/Value',''),
NewPkgLink.FLastUsed);
if not CfgStrToDate(XMLConfig.GetValue(ItemPath+'LastUsed/Value',''),
NewPkgLink.FLastUsed)
then
NewPkgLink.FLastUsed := 0;
if NewPkgLink.MakeSense then begin
FUserLinksSortID.Add(NewPkgLink);