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:
parent
c7ae5633d7
commit
b934d63e9b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user