You've already forked lazarus-ccr
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:
@ -751,6 +751,7 @@ function xsd_DurationToStr(const AValue : TDurationRec) : string;
|
|||||||
var
|
var
|
||||||
strTime, strDate : string;
|
strTime, strDate : string;
|
||||||
begin
|
begin
|
||||||
|
Result := '';
|
||||||
if ( AValue.FractionalSecond > 0 ) then begin
|
if ( AValue.FractionalSecond > 0 ) then begin
|
||||||
strTime := IntToStr(AValue.Second) + '.' + IntToStr(AValue.FractionalSecond) + 'S';
|
strTime := IntToStr(AValue.Second) + '.' + IntToStr(AValue.FractionalSecond) + 'S';
|
||||||
end else begin
|
end else begin
|
||||||
|
Reference in New Issue
Block a user