Initialize "Result" to avoid garbage due to optimization

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2584 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
inoussa 2012-10-29 19:15:58 +00:00
parent c7ae5633d7
commit b934d63e9b

View File

@ -751,6 +751,7 @@ function xsd_DurationToStr(const AValue : TDurationRec) : string;
var
strTime, strDate : string;
begin
Result := '';
if ( AValue.FractionalSecond > 0 ) then begin
strTime := IntToStr(AValue.Second) + '.' + IntToStr(AValue.FractionalSecond) + 'S';
end else begin