mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 09:09:09 +02:00
* also initialize variant part in Empty function
git-svn-id: trunk@36980 -
This commit is contained in:
parent
3cb8cb293d
commit
bd74f9af64
@ -535,6 +535,7 @@ end;
|
|||||||
class function TValue.Empty: TValue;
|
class function TValue.Empty: TValue;
|
||||||
begin
|
begin
|
||||||
result.FData.FTypeInfo := nil;
|
result.FData.FTypeInfo := nil;
|
||||||
|
result.FData.FAsUInt64 := 0;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
class procedure TValue.Make(ABuffer: pointer; ATypeInfo: PTypeInfo; out result: TValue);
|
class procedure TValue.Make(ABuffer: pointer; ATypeInfo: PTypeInfo; out result: TValue);
|
||||||
|
Loading…
Reference in New Issue
Block a user