* also initialize variant part in Empty function

git-svn-id: trunk@36980 -
This commit is contained in:
svenbarth 2017-08-20 19:08:27 +00:00
parent 3cb8cb293d
commit bd74f9af64

View File

@ -535,6 +535,7 @@ end;
class function TValue.Empty: TValue;
begin
result.FData.FTypeInfo := nil;
result.FData.FAsUInt64 := 0;
end;
class procedure TValue.Make(ABuffer: pointer; ATypeInfo: PTypeInfo; out result: TValue);